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