Sha256: 285467b7ad880f7f301331fc9a327d6a3166588fda6037af264540ef4bb6e891
Contents?: true
Size: 686 Bytes
Versions: 50
Compression:
Stored size: 686 Bytes
Contents
class CodeRunner require SCRIPT_FOLDER + '/system_modules/slurm.rb' module Stampede include Slurm #def batch_script #raise "Please specify project" unless @project #super #end def max_ppn 16 end 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 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
50 entries across 50 versions & 1 rubygems