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-1.0.14 lib/coderunner/system_modules/dirac.rb
coderunner-1.0.13 lib/coderunner/system_modules/dirac.rb
coderunner-1.0.12 lib/coderunner/system_modules/dirac.rb
coderunner-1.0.11 lib/coderunner/system_modules/dirac.rb
coderunner-1.0.10 lib/coderunner/system_modules/dirac.rb
coderunner-1.0.9 lib/coderunner/system_modules/dirac.rb
coderunner-1.0.8 lib/coderunner/system_modules/dirac.rb
coderunner-1.0.7 lib/coderunner/system_modules/dirac.rb
coderunner-1.0.6 lib/coderunner/system_modules/dirac.rb
coderunner-1.0.4 lib/coderunner/system_modules/dirac.rb
coderunner-1.0.3 lib/coderunner/system_modules/dirac.rb
coderunner-1.0.2 lib/coderunner/system_modules/dirac.rb
coderunner-1.0.1 lib/coderunner/system_modules/dirac.rb
coderunner-1.0.0 lib/coderunner/system_modules/dirac.rb
coderunner-0.18.5 lib/coderunner/system_modules/dirac.rb
coderunner-0.18.4 lib/coderunner/system_modules/dirac.rb
coderunner-0.18.3 lib/coderunner/system_modules/dirac.rb
coderunner-0.18.2 lib/coderunner/system_modules/dirac.rb
coderunner-0.18.1 lib/coderunner/system_modules/dirac.rb
coderunner-0.18.0 lib/coderunner/system_modules/dirac.rb