coderunner 0.17.6 → 0.17.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 943104c85d335c22084f38ec638699ce3bb32100
4
- data.tar.gz: a839a1f4ecdc6c99aa99a3d1c177195708bd4470
3
+ metadata.gz: 10c322689bf3a57734ed9d6a079f23debfdab926
4
+ data.tar.gz: 97334cbd6e0cce779956db7051528a7ff2ff1cc7
5
5
  SHA512:
6
- metadata.gz: 0f807bb516152258b05156737b2f8422623cf64851490fb482cccb3e61e5c67805d6723db9cfea99013861c7e2a90845edc4c336c241495a61455218da07a91e
7
- data.tar.gz: 79c3e57c77f52c44d984d0c184e687b2cf3a241f1be417c818cd156aba5de3ce8d22a2231cf01e2e6921aa1ed5b503b8c1082dd9a81b044f3ad244bacf121537
6
+ metadata.gz: d6a4b22a00d0fae3aff40fb1dc928cd41e67956c9b710000e723ffb4fdf9f9dd2f22f1500a2085accbb5f3fe862164a567d2c14ba7529c65f50221d75eb61721
7
+ data.tar.gz: 36d00b69efa798f31ff76531c9b1d21702b8bf200e24638dbe5a90525c692b511c4768fe80cc9bfda0bb8ddfcf08b926d98c9a7027307b6d18eb699ac039732a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.17.6
1
+ 0.17.7
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.17.6 ruby lib
5
+ # stub: coderunner 0.17.7 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.17.6"
10
+ s.version = "0.17.7"
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-11-05"
15
+ s.date = "2015-12-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"]
@@ -56,6 +56,7 @@ Gem::Specification.new do |s|
56
56
  "lib/coderunner/run.rb",
57
57
  "lib/coderunner/system_modules/archer.rb",
58
58
  "lib/coderunner/system_modules/blue_joule.rb",
59
+ "lib/coderunner/system_modules/cori.rb",
59
60
  "lib/coderunner/system_modules/dirac.rb",
60
61
  "lib/coderunner/system_modules/edison.rb",
61
62
  "lib/coderunner/system_modules/franklin.rb",
@@ -99,7 +100,7 @@ Gem::Specification.new do |s|
99
100
  s.licenses = ["GPLv3"]
100
101
  s.required_ruby_version = Gem::Requirement.new(">= 1.9.1")
101
102
  s.rubyforge_project = "coderunner"
102
- s.rubygems_version = "2.2.2"
103
+ s.rubygems_version = "2.4.8"
103
104
  s.summary = "A framework for the automated running and analysis of simulations."
104
105
 
105
106
  if s.respond_to? :specification_version then
@@ -575,8 +575,8 @@ EOF
575
575
  eputs 'Starting Graph'
576
576
  kit = runner.graphkit_from_lists(copts[:G], copts[:g])
577
577
  kit.gnuplot(eval: string_to_eval)
578
- gets
579
- kit.close
578
+ #gets
579
+ #kit.close
580
580
  end
581
581
 
582
582
  def self.readout(copts={})
@@ -0,0 +1,25 @@
1
+ class CodeRunner
2
+ require SCRIPT_FOLDER + '/system_modules/slurm.rb'
3
+ module Stampede
4
+ include Slurm
5
+ #def batch_script
6
+ #raise "Please specify project" unless @project
7
+ #super
8
+ #end
9
+ def max_ppn
10
+ 32
11
+ end
12
+ def run_command
13
+ # "qsub #{batch_script_file}"
14
+ if use_launcher
15
+ return %[#{code_run_environment}\n srun -n #{@nprocs} #{executable_location}/#{executable_name} #{parameter_string} > #{output_file} 2> #{error_file}]
16
+ else
17
+ "srun -n #{nodex*ppn} #{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
24
+ end
25
+ end
@@ -46,6 +46,14 @@ module Slurm
46
46
  raise "Please define max_ppn for your system"
47
47
  end
48
48
 
49
+
50
+ def nodes
51
+ @nprocs.split(/x/)[0].to_i
52
+ end
53
+ def ppn
54
+ @nprocs.split(/x/)[1].to_i
55
+ end
56
+
49
57
  def batch_script
50
58
 
51
59
  nodes, ppn = @nprocs.split(/x/)
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.17.6
4
+ version: 0.17.7
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-11-05 00:00:00.000000000 Z
11
+ date: 2015-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphkit
@@ -228,6 +228,7 @@ files:
228
228
  - lib/coderunner/run.rb
229
229
  - lib/coderunner/system_modules/archer.rb
230
230
  - lib/coderunner/system_modules/blue_joule.rb
231
+ - lib/coderunner/system_modules/cori.rb
231
232
  - lib/coderunner/system_modules/dirac.rb
232
233
  - lib/coderunner/system_modules/edison.rb
233
234
  - lib/coderunner/system_modules/franklin.rb
@@ -286,7 +287,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
286
287
  version: '0'
287
288
  requirements: []
288
289
  rubyforge_project: coderunner
289
- rubygems_version: 2.2.2
290
+ rubygems_version: 2.4.8
290
291
  signing_key:
291
292
  specification_version: 4
292
293
  summary: A framework for the automated running and analysis of simulations.