coderunner 0.15.7 → 0.15.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/coderunner.gemspec +3 -3
- data/lib/coderunner/system_modules/helios.rb +13 -0
- data/lib/coderunner/system_modules/slurm.rb +6 -3
- 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: 3b40b38fcea184d29203d2d101ceb480eacf1d6b
|
4
|
+
data.tar.gz: 0e0f3a66735a746b44b3973f494496e4f25fe2f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 901df6eacfbbefd640e79d8204ac4688a0aa1d1c1fcc8dc816c30fb2f2909a917077326c4a0682d45eb76983378f7f9e763bdd34e702245215f339b18983f57d
|
7
|
+
data.tar.gz: 678cfd6ae0a6d206f1a214eeec5626e02988ba6e1d2d70739e1fdc638b60099cf0c43752a15b27389733a28c210b92f9aae62a1d211d1e87595bb6737826b869
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.15.
|
1
|
+
0.15.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.15.
|
5
|
+
# stub: coderunner 0.15.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.15.
|
10
|
+
s.version = "0.15.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-02
|
15
|
+
s.date = "2015-04-02"
|
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"]
|
@@ -9,5 +9,18 @@ class CodeRunner
|
|
9
9
|
def max_ppn
|
10
10
|
16
|
11
11
|
end
|
12
|
+
def mpi_prog
|
13
|
+
nodes, ppn = @nprocs.split(/x/)
|
14
|
+
nprocstot = nodes.to_i * ppn.to_i
|
15
|
+
"srun -n #{nprocstot}"
|
16
|
+
end
|
17
|
+
def run_command
|
18
|
+
# "qsub #{batch_script_file}"
|
19
|
+
if (ENV['CODE_RUNNER_LAUNCHER'].size > 0 rescue false)
|
20
|
+
return %[#@preamble #{mpi_prog} #{executable_location}/#{executable_name} #{parameter_string} > #{output_file} 2> #{error_file}]
|
21
|
+
else
|
22
|
+
"#@preamble #{mpi_prog} #{executable_location}/#{executable_name} #{parameter_string}"
|
23
|
+
end
|
24
|
+
end
|
12
25
|
end
|
13
26
|
end
|
@@ -17,11 +17,14 @@ module Slurm
|
|
17
17
|
if (ENV['CODE_RUNNER_LAUNCHER'].size > 0 rescue false)
|
18
18
|
return %[mpiexec -np #{@nprocs} #{executable_location}/#{executable_name} #{parameter_string} > #{output_file} 2> #{error_file}]
|
19
19
|
else
|
20
|
-
|
21
|
-
nprocstot = nodes.to_i * ppn.to_i
|
22
|
-
"#@preamble mpirun -np #{nprocstot} #{executable_location}/#{executable_name} #{parameter_string}"
|
20
|
+
"#@preamble #{mpi_prog} #{executable_location}/#{executable_name} #{parameter_string}"
|
23
21
|
end
|
24
22
|
end
|
23
|
+
def mpi_prog
|
24
|
+
nodes, ppn = @nprocs.split(/x/)
|
25
|
+
nprocstot = nodes.to_i * ppn.to_i
|
26
|
+
"mpirun -np #{nprocstot}"
|
27
|
+
end
|
25
28
|
|
26
29
|
def execute
|
27
30
|
if ((prefix = ENV['CODE_RUNNER_LAUNCHER']).size > 0 rescue false)
|
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.15.
|
4
|
+
version: 0.15.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-02
|
11
|
+
date: 2015-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphkit
|