Sha256: 74892a5c9574a8144061388636a8afc91c55cff1eda92486db020960070ecad8

Contents?: true

Size: 680 Bytes

Versions: 23

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 #{nodes*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

23 entries across 23 versions & 1 rubygems

Version Path
coderunner-0.17.11 lib/coderunner/system_modules/cori.rb
coderunner-0.17.10 lib/coderunner/system_modules/cori.rb
coderunner-0.17.9 lib/coderunner/system_modules/cori.rb