Sha256: b5135d4f355683d0b76400036866fc46c9e88b1ab830ac6d2edca4bc06e66c82

Contents?: true

Size: 570 Bytes

Versions: 165

Compression:

Stored size: 570 Bytes

Contents

class CodeRunner
	module NewHydra

def queue_status
	%x[qstat | grep $LOGNAME]
end

def run_command
	if @runner.debug
		return %[mpisubshort "40mins" #{@nprocs} #{executable_location}/#{executable_name} #{parameter_string}  ]
	else 
		return %[mpisubnoquotes "0.5-10 hrs" #{@nprocs} #{executable_location}/#{executable_name} #{parameter_string}]
	end
end

def execute
	system run_command
end

def cancel_job
	`qdel #{@job_no}`
end

def error_file
	return "#{executable_name}.sh.e#{@job_no}"
end

def output_file
	return "#{executable_name}.sh.o#{@job_no}"
end

	end
end

Version data entries

165 entries across 165 versions & 1 rubygems

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