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

Version Path
coderunner-0.14.12 lib/coderunner/system_modules/stampede.rb
coderunner-0.14.11 lib/coderunner/system_modules/stampede.rb
coderunner-0.14.10 lib/coderunner/system_modules/stampede.rb
coderunner-0.14.9 lib/coderunner/system_modules/stampede.rb
coderunner-0.14.8 lib/coderunner/system_modules/stampede.rb
coderunner-0.14.7 lib/coderunner/system_modules/stampede.rb
coderunner-0.14.6 lib/coderunner/system_modules/stampede.rb
coderunner-0.14.5 lib/coderunner/system_modules/stampede.rb
coderunner-0.14.4 lib/coderunner/system_modules/stampede.rb
coderunner-0.14.3 lib/coderunner/system_modules/stampede.rb
coderunner-0.14.2 lib/coderunner/system_modules/stampede.rb
coderunner-0.14.1 lib/coderunner/system_modules/stampede.rb
coderunner-0.14.0 lib/coderunner/system_modules/stampede.rb
coderunner-0.13.32 lib/coderunner/system_modules/stampede.rb
coderunner-0.13.31 lib/coderunner/system_modules/stampede.rb
coderunner-0.13.30 lib/coderunner/system_modules/stampede.rb
coderunner-0.13.29 lib/coderunner/system_modules/stampede.rb
coderunner-0.13.28 lib/coderunner/system_modules/stampede.rb
coderunner-0.13.27 lib/coderunner/system_modules/stampede.rb
coderunner-0.13.26 lib/coderunner/system_modules/stampede.rb