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-1.0.14 lib/coderunner/system_modules/cori.rb
coderunner-1.0.13 lib/coderunner/system_modules/cori.rb
coderunner-1.0.12 lib/coderunner/system_modules/cori.rb
coderunner-1.0.11 lib/coderunner/system_modules/cori.rb
coderunner-1.0.10 lib/coderunner/system_modules/cori.rb
coderunner-1.0.9 lib/coderunner/system_modules/cori.rb
coderunner-1.0.8 lib/coderunner/system_modules/cori.rb
coderunner-1.0.7 lib/coderunner/system_modules/cori.rb
coderunner-1.0.6 lib/coderunner/system_modules/cori.rb
coderunner-1.0.4 lib/coderunner/system_modules/cori.rb
coderunner-1.0.3 lib/coderunner/system_modules/cori.rb
coderunner-1.0.2 lib/coderunner/system_modules/cori.rb
coderunner-1.0.1 lib/coderunner/system_modules/cori.rb
coderunner-1.0.0 lib/coderunner/system_modules/cori.rb
coderunner-0.18.5 lib/coderunner/system_modules/cori.rb
coderunner-0.18.4 lib/coderunner/system_modules/cori.rb
coderunner-0.18.3 lib/coderunner/system_modules/cori.rb
coderunner-0.18.2 lib/coderunner/system_modules/cori.rb
coderunner-0.18.1 lib/coderunner/system_modules/cori.rb
coderunner-0.18.0 lib/coderunner/system_modules/cori.rb