Sha256: 078155ec16b7f09aaed6594c4def60307169b4cd8c07abf65419d80f706e92e7

Contents?: true

Size: 831 Bytes

Versions: 165

Compression:

Stored size: 831 Bytes

Contents

class CodeRunner
	module GenericlinuxTestsystem

@@ruby_command = "ruby1.9"

def queue_status
# 	if @@no_run
# 		return ""
# 	else
		return %x[ps] #%x[top -b -n 1 -u #{Process.uid} | grep #{@@executable_name}]
# 	end
	# top runs very slowly. If you have a system (for example your laptop) where you will never run simulations, only analyse them, replace this command with %x[ps] and code runner will run much faster.
end

def run_command
	if @@uses_mpi
		return %[mpirun -np #{@nprocs} #{executable_location}/#{executable_name} #{parameter_string}]
	else
		return %[#{executable_location}/#{executable_name} #{parameter_string}]
	end
end		

def execute
	log 'execute_submission'
	fork{exec run_command}
	sleep 0.2
end

def cancel_job
	`kill #{@job_no}`
end

def error_file
	return nil
end

def output_file
	return nil
end

	end
end

Version data entries

165 entries across 165 versions & 1 rubygems

Version Path
coderunner-1.0.14 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-1.0.13 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-1.0.12 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-1.0.11 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-1.0.10 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-1.0.9 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-1.0.8 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-1.0.7 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-1.0.6 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-1.0.4 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-1.0.3 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-1.0.2 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-1.0.1 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-1.0.0 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.18.5 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.18.4 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.18.3 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.18.2 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.18.1 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.18.0 lib/coderunner/system_modules/genericlinux_testsystem.rb