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.17.11 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.17.10 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.17.9 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.17.8 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.17.7 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.17.6 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.17.5 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.17.4 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.17.3 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.17.2 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.17.1 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.17.0 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.16.20 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.16.19 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.16.18 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.16.17 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.16.16 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.16.15 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.16.14 lib/coderunner/system_modules/new_hydra.rb
coderunner-0.16.13 lib/coderunner/system_modules/new_hydra.rb