Module: CodeRunner::Cori
- Includes:
- Slurm
- Defined in:
- lib/coderunner/system_modules/cori.rb
Instance Method Summary collapse
Methods included from Slurm
#batch_script_file, #cancel_job, #error_file, #execute, #get_run_status, #mpi_prog, #nodes, #output_file, #ppn, #queue_status
Methods included from Launcher
#cancel_job_launcher, #error_file_launcher, #execute_launcher, #launcher_prefix, #output_file_launcher, #queue_status_launcher, #use_launcher
Instance Method Details
#batch_script ⇒ Object
20 21 22 23 |
# File 'lib/coderunner/system_modules/cori.rb', line 20 def batch_script raise "Please specify the queue to submit to using the -Q (or Q:) flag" unless @queue super end |
#max_ppn ⇒ Object
end
9 10 11 |
# File 'lib/coderunner/system_modules/cori.rb', line 9 def max_ppn 32 end |
#run_command ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/coderunner/system_modules/cori.rb', line 12 def run_command # "qsub #{batch_script_file}" if use_launcher return %[#{code_run_environment}\n srun -n #{@nprocs} #{executable_location}/#{executable_name} #{parameter_string} > #{output_file} 2> #{error_file}] else "srun -n #{nodes*ppn} #{executable_location}/#{executable_name} #{parameter_string}" end end |