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.15.8 lib/coderunner/system_modules/stampede.rb
coderunner-0.15.7 lib/coderunner/system_modules/stampede.rb
coderunner-0.15.6 lib/coderunner/system_modules/stampede.rb
coderunner-0.15.5 lib/coderunner/system_modules/stampede.rb
coderunner-0.15.4 lib/coderunner/system_modules/stampede.rb
coderunner-0.15.2 lib/coderunner/system_modules/stampede.rb
coderunner-0.15.1 lib/coderunner/system_modules/stampede.rb
coderunner-0.15.0 lib/coderunner/system_modules/stampede.rb
coderunner-0.14.24 lib/coderunner/system_modules/stampede.rb
coderunner-0.14.23 lib/coderunner/system_modules/stampede.rb
coderunner-0.14.22 lib/coderunner/system_modules/stampede.rb
coderunner-0.14.21 lib/coderunner/system_modules/stampede.rb
coderunner-0.14.20 lib/coderunner/system_modules/stampede.rb
coderunner-0.14.19 lib/coderunner/system_modules/stampede.rb
coderunner-0.14.18 lib/coderunner/system_modules/stampede.rb
coderunner-0.14.17 lib/coderunner/system_modules/stampede.rb
coderunner-0.14.16 lib/coderunner/system_modules/stampede.rb
coderunner-0.14.15 lib/coderunner/system_modules/stampede.rb
coderunner-0.14.14 lib/coderunner/system_modules/stampede.rb
coderunner-0.14.13 lib/coderunner/system_modules/stampede.rb