Mentions légales du service

Skip to content
Snippets Groups Projects
Commit ad90db0b authored by Lucas Nussbaum's avatar Lucas Nussbaum
Browse files

[dev/oar-prop] Count GPUs on all nodes

parent ed137771
No related branches found
No related tags found
1 merge request!118Oar-properties generator: improve assignment of GPU ids to deal with removal of GPUs
...@@ -1272,7 +1272,7 @@ def extract_clusters_description(clusters, site_name, options, data_hierarchy, s ...@@ -1272,7 +1272,7 @@ def extract_clusters_description(clusters, site_name, options, data_hierarchy, s
"gpu" => { "gpu" => {
:current_ids => [], :current_ids => [],
:per_server_count => gpu_count, :per_server_count => gpu_count,
:per_cluster_count => node_count * gpu_count :per_cluster_count => cluster_desc_from_data_files['nodes'].values.map { |e| (e['gpu_devices'] || {} ).length }.inject(0) { |a, b| a+b } # sum
}, },
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment