Module: CodeRunner::NewHydra

Defined in:
lib/coderunner/system_modules/new_hydra.rb

Instance Method Summary collapse

Instance Method Details

#cancel_jobObject



20
21
22
# File 'lib/coderunner/system_modules/new_hydra.rb', line 20

def cancel_job
	`qdel #{@job_no}`
end

#error_fileObject



24
25
26
# File 'lib/coderunner/system_modules/new_hydra.rb', line 24

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

#executeObject



16
17
18
# File 'lib/coderunner/system_modules/new_hydra.rb', line 16

def execute
	system run_command
end

#output_fileObject



28
29
30
# File 'lib/coderunner/system_modules/new_hydra.rb', line 28

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

#queue_statusObject



4
5
6
# File 'lib/coderunner/system_modules/new_hydra.rb', line 4

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

#run_commandObject



8
9
10
11
12
13
14
# File 'lib/coderunner/system_modules/new_hydra.rb', line 8

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