Sha256: 63e507a6cf8f3ef0bbe9e24fefd6400a9207997139ea1328775027e712244c9b

Contents?: true

Size: 979 Bytes

Versions: 113

Compression:

Stored size: 979 Bytes

Contents

class CodeRunner
	require 'coderunner/system_modules/moab.rb'
	module Dirac
		include Moab
		def max_ppn
			16
		end
		def mpi_prog
			"mpiexec -np #{nprocstot} "
		end
		def gpu_name
			@nprocs.split(/:/)[1]
		end
		
		def batch_script
			ppn_checks
			hours, mins, secs = hours_minutes_seconds
	<<EOF
		#!/bin/bash --login 
		#PBS -N #{executable_name}.#{job_identifier}
		#PBS -l nodes=#{nodes}:ppn=#{ppn}:#{gpu_name}
		#PBS -l walltime=#{sprintf("%02d:%02d:%02d", hours, mins, secs)}
		#{@project ? "#PBS -A #@project" : ""}
		#PBS -e #{executable_name}.#{job_identifier}.e$PBS_JOBID
		#PBS -o #{executable_name}.#{job_identifier}.o$PBS_JOBID
		#PBS -V
		#PBS -q dirac_reg
		#PBS -A gpgpu

		module load cuda
		module load nvidia-driver-util


		#


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

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

Version data entries

113 entries across 113 versions & 1 rubygems

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