Sha256: 7e520bd9e827ebac885bfe0af1ba3e6ebcbd5f0c3c5ac6a6a55fd14f6338a15a

Contents?: true

Size: 893 Bytes

Versions: 24

Compression:

Stored size: 893 Bytes

Contents

class CodeRunner
	require SCRIPT_FOLDER + '/system_modules/moab.rb'
	module Archer
		include Moab

		def batch_script
			raise "Please specify project" unless @project
			(eputs "Warning: number of wall mins is not recommended (20, 60, 180, 360, 720 recomended)"; sleep 0.2) unless [20, 60, 180, 360, 720].include? @wall_mins.to_i

		ppn_checks
		hours, mins, secs = hours_minutes_seconds
<<EOF 
	#!/bin/bash --login 
	#PBS -N #{executable_name}.#{job_identifier}
	#PBS -l select=#{nodes}
	#PBS -l walltime=#{sprintf("%02d:%02d:%02d", hours, mins, secs)}
	#{@project ? "#PBS -A #@project" : ""}

	### start of jobscript 
	cd $PBS_O_WORKDIR 
	echo "workdir: $PBS_O_WORKDIR" 
#{code_run_environment}

	echo "Submitting #{nodes}x#{ppn} job on #{CodeRunner::SYS} for project #@project..."
EOF
	end

    def max_ppn
      24
    end

    def  mpi_prog
    "aprun -n #{ppn*nodes}"
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
coderunner-0.14.17 lib/coderunner/system_modules/archer.rb
coderunner-0.14.16 lib/coderunner/system_modules/archer.rb
coderunner-0.14.15 lib/coderunner/system_modules/archer.rb
coderunner-0.14.14 lib/coderunner/system_modules/archer.rb
coderunner-0.14.13 lib/coderunner/system_modules/archer.rb
coderunner-0.14.12 lib/coderunner/system_modules/archer.rb
coderunner-0.14.11 lib/coderunner/system_modules/archer.rb
coderunner-0.14.10 lib/coderunner/system_modules/archer.rb
coderunner-0.14.9 lib/coderunner/system_modules/archer.rb
coderunner-0.14.8 lib/coderunner/system_modules/archer.rb
coderunner-0.14.7 lib/coderunner/system_modules/archer.rb
coderunner-0.14.6 lib/coderunner/system_modules/archer.rb
coderunner-0.14.5 lib/coderunner/system_modules/archer.rb
coderunner-0.14.4 lib/coderunner/system_modules/archer.rb
coderunner-0.14.3 lib/coderunner/system_modules/archer.rb
coderunner-0.14.2 lib/coderunner/system_modules/archer.rb
coderunner-0.14.1 lib/coderunner/system_modules/archer.rb
coderunner-0.14.0 lib/coderunner/system_modules/archer.rb
coderunner-0.13.32 lib/coderunner/system_modules/archer.rb
coderunner-0.13.31 lib/coderunner/system_modules/archer.rb