coderunner 1.0.10 → 1.0.11
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/marconi.rb +19 -30
- 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: 7efe9db90ab3c2addc215e3c05f683539b032164
|
4
|
+
data.tar.gz: a743bf0b621c725aa6f1446dac7e5a482c5b107d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75cea1b6e8a13dfae663ba2700af11ef86baf355cd0732e68c89f8ddecceac7157aa075ee0633ad121f6ab154c77e4ee409b84555a06a413f7d7bffbb92daac2
|
7
|
+
data.tar.gz: 5280776232d68f28c230e4e9081584d5980a30136207a3caa2ae2a682d8ea6e936c4686071d2f6f964fdb7e38c7203f2de70e5d8efc9c5bb9be8b7747fd553fc
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.11
|
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 1.0.
|
5
|
+
# stub: coderunner 1.0.11 ruby lib
|
6
6
|
# stub: ext/extconf.rb
|
7
7
|
|
8
8
|
Gem::Specification.new do |s|
|
9
9
|
s.name = "coderunner".freeze
|
10
|
-
s.version = "1.0.
|
10
|
+
s.version = "1.0.11"
|
11
11
|
|
12
12
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
13
13
|
s.require_paths = ["lib".freeze]
|
14
14
|
s.authors = ["Edmund Highcock".freeze]
|
15
|
-
s.date = "
|
15
|
+
s.date = "2018-02-06"
|
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.".freeze
|
17
17
|
s.email = "edmundhighcock@users.sourceforge.net".freeze
|
18
18
|
s.executables = ["coderunner".freeze, "coderunnerrepo".freeze]
|
@@ -1,36 +1,25 @@
|
|
1
1
|
class CodeRunner
|
2
|
-
require SCRIPT_FOLDER + '/system_modules/
|
2
|
+
require SCRIPT_FOLDER + '/system_modules/slurm.rb'
|
3
3
|
module Marconi
|
4
|
-
include
|
5
|
-
def batch_script
|
6
|
-
raise "Please specify project" unless @project
|
7
|
-
super
|
8
|
-
end
|
4
|
+
include Slurm
|
5
|
+
#def batch_script
|
6
|
+
#raise "Please specify project" unless @project
|
7
|
+
#super
|
8
|
+
#end
|
9
9
|
def max_ppn
|
10
|
-
|
10
|
+
48
|
11
11
|
end
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
### start of jobscript
|
26
|
-
cd $PBS_O_WORKDIR
|
27
|
-
echo "workdir: $PBS_O_WORKDIR"
|
28
|
-
|
29
|
-
echo "Submitting #{nodes}x#{ppn} job on #{CodeRunner::SYS} for project #@project..."
|
30
|
-
EOF
|
31
|
-
end
|
32
|
-
def mpi_prog
|
33
|
-
"mpirun -np #{nprocstot}"
|
34
|
-
end
|
12
|
+
def run_command
|
13
|
+
# "qsub #{batch_script_file}"
|
14
|
+
if use_launcher
|
15
|
+
return %[#{code_run_environment}\n ibrun -n #{@nprocs} -o 0 #{executable_location}/#{executable_name} #{parameter_string} > #{output_file} 2> #{error_file}]
|
16
|
+
else
|
17
|
+
"srun #{executable_location}/#{executable_name} #{parameter_string}"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
def batch_script
|
21
|
+
raise "Please specify the queue to submit to using the -Q (or Q:) flag" unless @queue
|
22
|
+
super
|
23
|
+
end
|
35
24
|
end
|
36
25
|
end
|
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: 1.0.
|
4
|
+
version: 1.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edmund Highcock
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphkit
|