Sha256: cb9da430fce37835045b8ea8f89cd106ce3a2c7f4657982e3cba8594ec5959fc

Contents?: true

Size: 570 Bytes

Versions: 54

Compression:

Stored size: 570 Bytes

Contents

class CodeRunner
	require SCRIPT_FOLDER + '/system_modules/slurm.rb'
	module Helios
		include Slurm
		def max_ppn
			16
		end
    def mpi_prog
	    nodes, ppn = @nprocs.split(/x/)
      nprocstot = nodes.to_i * ppn.to_i
      "srun -n #{nprocstot}"
    end 
	def run_command
		if use_launcher
			return %[#{code_run_environment}\n #@preamble #{mpi_prog}  #{executable_location}/#{executable_name} #{parameter_string} > #{output_file} 2> #{error_file}]
		else
			"#@preamble #{mpi_prog}  #{executable_location}/#{executable_name} #{parameter_string}"
		end
	end
	end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
coderunner-1.0.14 lib/coderunner/system_modules/helios.rb
coderunner-1.0.13 lib/coderunner/system_modules/helios.rb
coderunner-1.0.12 lib/coderunner/system_modules/helios.rb
coderunner-1.0.11 lib/coderunner/system_modules/helios.rb
coderunner-1.0.10 lib/coderunner/system_modules/helios.rb
coderunner-1.0.9 lib/coderunner/system_modules/helios.rb
coderunner-1.0.8 lib/coderunner/system_modules/helios.rb
coderunner-1.0.7 lib/coderunner/system_modules/helios.rb
coderunner-1.0.6 lib/coderunner/system_modules/helios.rb
coderunner-1.0.4 lib/coderunner/system_modules/helios.rb
coderunner-1.0.3 lib/coderunner/system_modules/helios.rb
coderunner-1.0.2 lib/coderunner/system_modules/helios.rb
coderunner-1.0.1 lib/coderunner/system_modules/helios.rb
coderunner-1.0.0 lib/coderunner/system_modules/helios.rb
coderunner-0.18.5 lib/coderunner/system_modules/helios.rb
coderunner-0.18.4 lib/coderunner/system_modules/helios.rb
coderunner-0.18.3 lib/coderunner/system_modules/helios.rb
coderunner-0.18.2 lib/coderunner/system_modules/helios.rb
coderunner-0.18.1 lib/coderunner/system_modules/helios.rb
coderunner-0.18.0 lib/coderunner/system_modules/helios.rb