coderunner 0.16.7 → 0.16.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/coderunner.gemspec +3 -3
- data/lib/coderunner/system_modules/launcher.rb +6 -0
- data/lib/coderunner/system_modules/slurm.rb +6 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d61419b6ff8ca8962b2f3bd1a6d4d1ac80eb954e
|
4
|
+
data.tar.gz: e05030ab35aec0a0ab74e607d38216c34741a2e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cc723df8dbe6d71baeeb54a1b443f66e413775eb88d816a4cadffbd24c3ac67b8e9f4ff2dfbc532b2c45a545fc0b0a67e11164600dab48a0711e836ae513feb
|
7
|
+
data.tar.gz: 61d03747461649b0c986858e27c562013dda06a1e5a1d013bac25b3d66fcd76dc70a50d5b2fc139392277b8bf88bdd751c3cfb8443cfc27cad8252b101c3197f
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.16.
|
1
|
+
0.16.8
|
data/coderunner.gemspec
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: coderunner 0.16.
|
5
|
+
# stub: coderunner 0.16.8 ruby lib
|
6
6
|
# stub: ext/extconf.rb
|
7
7
|
|
8
8
|
Gem::Specification.new do |s|
|
9
9
|
s.name = "coderunner"
|
10
|
-
s.version = "0.16.
|
10
|
+
s.version = "0.16.8"
|
11
11
|
|
12
12
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
13
13
|
s.require_paths = ["lib"]
|
14
14
|
s.authors = ["Edmund Highcock"]
|
15
|
-
s.date = "2015-05-
|
15
|
+
s.date = "2015-05-22"
|
16
16
|
s.description = "CodeRunner is a framework for the automated running and analysis of simulations. It automatically generates any necessary input files, organises the output data and analyses it. Because it is a modular system, it can easily be customised to work with any system and any simulation code. One of its greatest strengths is that it is independent of any one simulation code; thus it can easily plot and compare the data from different codes."
|
17
17
|
s.email = "edmundhighcock@sourceforge.net"
|
18
18
|
s.executables = ["coderunner", "coderunnerrepo"]
|
@@ -27,5 +27,11 @@ class CodeRunner
|
|
27
27
|
fname = CodeRunner.launcher_directory + "/#{$$}.stop"
|
28
28
|
File.open(fname, 'w'){|file| file.puts "\n"}
|
29
29
|
end
|
30
|
+
def error_file_launcher
|
31
|
+
return "#{executable_name}.#{job_identifier}.e"
|
32
|
+
end
|
33
|
+
def output_file_launcher
|
34
|
+
return "#{executable_name}.#{job_identifier}.o"
|
35
|
+
end
|
30
36
|
end
|
31
37
|
end
|
@@ -17,7 +17,7 @@ module Slurm
|
|
17
17
|
def run_command
|
18
18
|
# "qsub #{batch_script_file}"
|
19
19
|
if use_launcher
|
20
|
-
return %[mpiexec -np #{@nprocs} #{executable_location}/#{executable_name} #{parameter_string} > #{
|
20
|
+
return %[mpiexec -np #{@nprocs} #{executable_location}/#{executable_name} #{parameter_string} > #{output_file_launcher} 2> #{error_file_launcher}]
|
21
21
|
else
|
22
22
|
"#@preamble #{mpi_prog} #{executable_location}/#{executable_name} #{parameter_string}"
|
23
23
|
end
|
@@ -83,19 +83,17 @@ EOF
|
|
83
83
|
end
|
84
84
|
|
85
85
|
def cancel_job
|
86
|
-
|
87
|
-
cancel_job_launcher
|
88
|
-
else
|
89
|
-
`scancel #{@job_no}`
|
90
|
-
end
|
86
|
+
use_launcher ? cancel_job_launcher : `scancel #{@job_no}`
|
91
87
|
end
|
92
88
|
|
93
89
|
def error_file
|
94
|
-
|
90
|
+
use_launcher ? error_file_launcher :
|
91
|
+
"#{executable_name}.#{job_identifier}.e#@job_no"
|
95
92
|
end
|
96
93
|
|
97
94
|
def output_file
|
98
|
-
|
95
|
+
use_launcher ? output_file_launcher :
|
96
|
+
"#{executable_name}.#{job_identifier}.o#@job_no"
|
99
97
|
end
|
100
98
|
|
101
99
|
def get_run_status(job_no, current_status)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coderunner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.16.
|
4
|
+
version: 0.16.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edmund Highcock
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphkit
|