Method: CodeRunner::LoadLeveler#run_command
- Defined in:
- lib/coderunner/system_modules/load_leveler.rb
#run_command ⇒ Object
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/coderunner/system_modules/load_leveler.rb', line 31 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 #nodes, ppn = @nprocs.split(/x/) #nprocstot = nodes.to_i * ppn.to_i "runjob --env-all --exe #{executable_location}/#{executable_name} --np #{nprocstot} --ranks-per-node #{ppn} --args \"#{parameter_string}\"" end end |