Sha256: 7063380047218d8eca35445b7f845fa3f86a9ae5baa5c8449dbb967a9ccb0279
Contents?: true
Size: 680 Bytes
Versions: 1
Compression:
Stored size: 680 Bytes
Contents
class CodeRunner require SCRIPT_FOLDER + '/system_modules/slurm.rb' module Cori include Slurm #def batch_script #raise "Please specify project" unless @project #super #end def max_ppn 32 end 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 #{nodex*ppn} #{executable_location}/#{executable_name} #{parameter_string}" end end def batch_script raise "Please specify the queue to submit to using the -Q (or Q:) flag" unless @queue super end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
coderunner-0.17.8 | lib/coderunner/system_modules/cori.rb |