From ad90db0bd665ec3d5acfa8d11106d84692a12ac9 Mon Sep 17 00:00:00 2001 From: Lucas Nussbaum <lucas.nussbaum@loria.fr> Date: Wed, 1 Jul 2020 16:58:59 +0200 Subject: [PATCH] [dev/oar-prop] Count GPUs on all nodes --- lib/refrepo/gen/oar-properties.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/refrepo/gen/oar-properties.rb b/lib/refrepo/gen/oar-properties.rb index 0379d1aa15..6f85441961 100644 --- a/lib/refrepo/gen/oar-properties.rb +++ b/lib/refrepo/gen/oar-properties.rb @@ -1272,7 +1272,7 @@ def extract_clusters_description(clusters, site_name, options, data_hierarchy, s "gpu" => { :current_ids => [], :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 }, } -- GitLab