Sha256: b5135d4f355683d0b76400036866fc46c9e88b1ab830ac6d2edca4bc06e66c82

Contents?: true

Size: 570 Bytes

Versions: 165

Compression:

Stored size: 570 Bytes

Contents

class CodeRunner
	module NewHydra

def queue_status
	%x[qstat | grep $LOGNAME]
end

def run_command
	if @runner.debug
		return %[mpisubshort "40mins" #{@nprocs} #{executable_location}/#{executable_name} #{parameter_string}  ]
	else 
		return %[mpisubnoquotes "0.5-10 hrs" #{@nprocs} #{executable_location}/#{executable_name} #{parameter_string}]
	end
end

def execute
	system run_command
end

def cancel_job
	`qdel #{@job_no}`
end

def error_file
	return "#{executable_name}.sh.e#{@job_no}"
end

def output_file
	return "#{executable_name}.sh.o#{@job_no}"
end

	end
end

Version data entries

165 entries across 165 versions & 1 rubygems

Version Path
coderunner-1.0.14 lib/coderunner/system_modules/new_hydra.rb
coderunner-1.0.13 lib/coderunner/system_modules/new_hydra.rb
coderunner-1.0.12 lib/coderunner/system_modules/new_hydra.rb
coderunner-1.0.11 lib/coderunner/system_modules/new_hydra.rb
coderunner-1.0.10 lib/coderunner/system_modules/new_hydra.rb
coderunner-1.0.9 lib/coderunner/system_modules/new_hydra.rb
coderunner-1.0.8 lib/coderunner/system_modules/new_hydra.rb
coderunner-1.0.7 lib/coderunner/system_modules/new_hydra.rb
coderunner-1.0.6 lib/coderunner/system_modules/new_hydra.rb
coderunner-1.0.4 lib/coderunner/system_modules/new_hydra.rb
coderunner-1.0.3 lib/coderunner/system_modules/new_hydra.rb
coderunner-1.0.2 lib/coderunner/system_modules/new_hydra.rb
coderunner-1.0.1 lib/coderunner/system_modules/new_hydra.rb
coderunner-1.0.0 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.18.5 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.18.4 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.18.3 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.18.2 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.18.1 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.18.0 lib/coderunner/system_modules/new_hydra.rb