Module: CodeRunner::NewHydra
- Defined in:
- lib/coderunner/system_modules/new_hydra.rb
Instance Method Summary collapse
- #cancel_job ⇒ Object
- #error_file ⇒ Object
- #execute ⇒ Object
- #output_file ⇒ Object
- #queue_status ⇒ Object
- #run_command ⇒ Object
Instance Method Details
#cancel_job ⇒ Object
20 21 22 |
# File 'lib/coderunner/system_modules/new_hydra.rb', line 20 def cancel_job `qdel #{@job_no}` end |
#error_file ⇒ Object
24 25 26 |
# File 'lib/coderunner/system_modules/new_hydra.rb', line 24 def error_file return "#{executable_name}.sh.e#{@job_no}" end |
#execute ⇒ Object
16 17 18 |
# File 'lib/coderunner/system_modules/new_hydra.rb', line 16 def execute system run_command end |
#output_file ⇒ Object
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_status ⇒ Object
4 5 6 |
# File 'lib/coderunner/system_modules/new_hydra.rb', line 4 def queue_status %x[qstat | grep $LOGNAME] end |
#run_command ⇒ Object
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 |