ood_core 0.20.1 → 0.20.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/lib/ood_core/job/adapters/slurm.rb +4 -4
- data/lib/ood_core/version.rb +1 -1
- data/ood_core.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c4e013f80e987d4d1cefbc78cc76bcff52e4083e0b84192b42807ae46806946
|
4
|
+
data.tar.gz: c4a1607904baccc1b063916ecf8e5a9692a9c0102a0d8cda3a9edf0ae760191f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab3333366fc7802d59a15dead3b21e863d0017385053eea629a109a076c6e768ed1575378a34e68bb6c163b050be87a9cf323f087d02e4e2be4d349550bf5531
|
7
|
+
data.tar.gz: 234c13fbbc428717532bd93ba4e977cfd825e480c69daf66c737165ed7c5d8a951c329ced0312d525efc0b70cb4d11234c016c6216c2bb7f74573de854340889
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## [0.20.2] - 07-28-2022
|
11
|
+
|
12
|
+
- Fixed an issue with Slurm's `cluster_info` in [762](https://github.com/OSC/ood_core/pull/762).
|
13
|
+
- Relaxed Ruby requirement down to 2.5 in [771](https://github.com/OSC/ood_core/pull/771).
|
14
|
+
|
10
15
|
## [0.20.1] - 07-21-2022
|
11
16
|
|
12
17
|
- Fixed turbovnc compatability issue with the -nohttpd flag in [767](https://github.com/OSC/ood_core/pull/767).
|
@@ -432,7 +437,8 @@ Functionally the same as [0.17.3] but with some CI updates.
|
|
432
437
|
### Added
|
433
438
|
- Initial release!
|
434
439
|
|
435
|
-
[Unreleased]: https://github.com/OSC/ood_core/compare/v0.20.
|
440
|
+
[Unreleased]: https://github.com/OSC/ood_core/compare/v0.20.2...HEAD
|
441
|
+
[0.20.2]: https://github.com/OSC/ood_core/compare/v0.20.1...v0.20.2
|
436
442
|
[0.20.1]: https://github.com/OSC/ood_core/compare/v0.20.0...v0.20.1
|
437
443
|
[0.20.0]: https://github.com/OSC/ood_core/compare/v0.19.0...v0.20.0
|
438
444
|
[0.19.0]: https://github.com/OSC/ood_core/compare/v0.18.1...v0.19.0
|
@@ -39,7 +39,7 @@ module OodCore
|
|
39
39
|
# Get integer representing the number of gpus used by a node or job,
|
40
40
|
# calculated from gres string
|
41
41
|
# @return [Integer] the number of gpus in gres
|
42
|
-
def gpus_from_gres(gres)
|
42
|
+
def self.gpus_from_gres(gres)
|
43
43
|
gres.to_s.scan(/gpu:[^,]*(\d+)/).flatten.map(&:to_i).sum
|
44
44
|
end
|
45
45
|
|
@@ -116,8 +116,8 @@ module OodCore
|
|
116
116
|
total_nodes: node_cpu_info[2].to_i,
|
117
117
|
active_processors: node_cpu_info[3].to_i,
|
118
118
|
total_processors: node_cpu_info[6].to_i,
|
119
|
-
active_gpus: gres_lines.sum { |line| gpus_from_gres(line[2]) },
|
120
|
-
total_gpus: gres_lines.sum { |line| gpus_from_gres(line[1]) }
|
119
|
+
active_gpus: gres_lines.sum { |line| Slurm.gpus_from_gres(line[2]) },
|
120
|
+
total_gpus: gres_lines.sum { |line| Slurm.gpus_from_gres(line[1]) }
|
121
121
|
)
|
122
122
|
end
|
123
123
|
|
@@ -673,7 +673,7 @@ module OodCore
|
|
673
673
|
submission_time: v[:submit_time] ? Time.parse(v[:submit_time]) : nil,
|
674
674
|
dispatch_time: (v[:start_time].nil? || v[:start_time] == "N/A") ? nil : Time.parse(v[:start_time]),
|
675
675
|
native: v,
|
676
|
-
gpus: gpus_from_gres(v[:gres])
|
676
|
+
gpus: self.class.gpus_from_gres(v[:gres])
|
677
677
|
)
|
678
678
|
end
|
679
679
|
|
data/lib/ood_core/version.rb
CHANGED
data/ood_core.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.bindir = "exe"
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
|
-
spec.required_ruby_version = ">= 2.
|
23
|
+
spec.required_ruby_version = ">= 2.5.0"
|
24
24
|
|
25
25
|
spec.add_runtime_dependency "ood_support", "~> 0.0.2"
|
26
26
|
spec.add_runtime_dependency "ffi", "~> 1.9", ">= 1.9.6"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ood_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.20.
|
4
|
+
version: 0.20.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Franz
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-07-
|
13
|
+
date: 2022-07-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ood_support
|
@@ -234,7 +234,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
234
234
|
requirements:
|
235
235
|
- - ">="
|
236
236
|
- !ruby/object:Gem::Version
|
237
|
-
version: 2.
|
237
|
+
version: 2.5.0
|
238
238
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
239
239
|
requirements:
|
240
240
|
- - ">="
|