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.16.12 lib/coderunner/system_modules/dirac.rb
coderunner-0.16.11 lib/coderunner/system_modules/dirac.rb
coderunner-0.16.10 lib/coderunner/system_modules/dirac.rb
coderunner-0.16.9 lib/coderunner/system_modules/dirac.rb
coderunner-0.16.8 lib/coderunner/system_modules/dirac.rb
coderunner-0.16.7 lib/coderunner/system_modules/dirac.rb
coderunner-0.16.6 lib/coderunner/system_modules/dirac.rb
coderunner-0.16.5 lib/coderunner/system_modules/dirac.rb
coderunner-0.16.4 lib/coderunner/system_modules/dirac.rb
coderunner-0.16.3 lib/coderunner/system_modules/dirac.rb
coderunner-0.16.2 lib/coderunner/system_modules/dirac.rb
coderunner-0.16.1 lib/coderunner/system_modules/dirac.rb
coderunner-0.16.0 lib/coderunner/system_modules/dirac.rb
coderunner-0.15.13 lib/coderunner/system_modules/dirac.rb
coderunner-0.15.12 lib/coderunner/system_modules/dirac.rb
coderunner-0.15.11 lib/coderunner/system_modules/dirac.rb
coderunner-0.15.10 lib/coderunner/system_modules/dirac.rb
coderunner-0.15.9 lib/coderunner/system_modules/dirac.rb
coderunner-0.15.8 lib/coderunner/system_modules/dirac.rb
coderunner-0.15.7 lib/coderunner/system_modules/dirac.rb