Module: CodeRunner::Hector
- Includes:
- Moab
- Defined in:
- lib/coderunner/system_modules/hector.rb
Instance Method Summary collapse
Methods included from Moab
#batch_script_file, #cancel_job, #error_file, #execute, #get_run_status, #hours_minutes_seconds, #mpi_prog, #nodes, #nprocstot, #output_file, #ppn, #ppn_checks, #queue_status, #run_command
Instance Method Details
#batch_script ⇒ Object
5 6 7 8 9 10 |
# File 'lib/coderunner/system_modules/hector.rb', line 5 def batch_script raise "Please specify project" unless @project (eputs "Warning: number of nodes is not recommended (8, 16, 32, 64, 128, 256, 512, 1024, 2048 or 4096 recommended)"; sleep 0.2) unless [8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096].include? nodes.to_i (eputs "Warning: number of wall mins is not recommended (20, 60, 180, 360, 720 recomended)"; sleep 0.2) unless [20, 60, 180, 360, 720].include? @wall_mins.to_i super end |
#max_ppn ⇒ Object
11 12 13 |
# File 'lib/coderunner/system_modules/hector.rb', line 11 def max_ppn 32 end |