Mentions légales du service

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

[gen/oar-prop] No gpu compute capability on AMD

parent b468c619
No related branches found
No related tags found
No related merge requests found
Pipeline #919066 passed with warnings
......@@ -434,8 +434,10 @@ def get_ref_node_properties_internal(cluster_uid, cluster, node_uid, node)
h['gpu_model'] = device['model']
h['gpu_count'] = node['gpu_devices'].length
h['gpu_mem'] = device['memory'] / MiB
h['gpu_compute_capability'] = device['compute_capability']
h['gpu_compute_capability_major'] = device['compute_capability'].split('.').first.to_i
if not ['AMD'].include?(device['vendor']) # not supported on AMD GPUs
h['gpu_compute_capability'] = device['compute_capability']
h['gpu_compute_capability_major'] = device['compute_capability'].split('.').first.to_i
end
end
end
......
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