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-0.14.10 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.14.9 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.14.8 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.14.7 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.14.6 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.14.5 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.14.4 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.14.3 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.14.2 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.14.1 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.14.0 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.13.32 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.13.31 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.13.30 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.13.29 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.13.28 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.13.27 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.13.26 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.13.25 lib/coderunner/system_modules/genericlinux_testsystem.rb
coderunner-0.13.24 lib/coderunner/system_modules/genericlinux_testsystem.rb