Module: CodeRunner::Stampede
- Includes:
- Slurm
- Defined in:
- lib/coderunner/system_modules/stampede.rb
Instance Method Summary collapse
Methods included from Slurm
#batch_script, #batch_script_file, #cancel_job, #error_file, #execute, #get_run_status, #output_file, #queue_status
Instance Method Details
#max_ppn ⇒ Object
end
9 10 11 |
# File 'lib/coderunner/system_modules/stampede.rb', line 9 def max_ppn 16 end |
#run_command ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/coderunner/system_modules/stampede.rb', line 12 def run_command # "qsub #{batch_script_file}" if (ENV['CODE_RUNNER_LAUNCHER'].size > 0 rescue false) return %[mpiexec -np #{@nprocs} #{executable_location}/#{executable_name} #{parameter_string} > #{output_file} 2> #{error_file}] else "ibrun #{executable_location}/#{executable_name} #{parameter_string}" end end |