Commit e87cf97b authored by Simon Delamare's avatar Simon Delamare
Browse files

[admin] Add support for value "shared" for oar gpu propery

parent 8012d9c6
...@@ -44,7 +44,8 @@ module Grid5000 ...@@ -44,7 +44,8 @@ module Grid5000
h['memcpu'] = properties['main_memory']['ram_size']/properties['architecture']['smp_size']/MiB h['memcpu'] = properties['main_memory']['ram_size']/properties['architecture']['smp_size']/MiB
h['memnode'] = properties['main_memory']['ram_size']/MiB h['memnode'] = properties['main_memory']['ram_size']/MiB
properties["gpu"] ||= {} properties["gpu"] ||= {}
h['gpu'] = properties['gpu']['gpu'] ? "YES" : "NO" h['gpu'] = (properties['gpu']['gpu'].is_a?(String) and properties['gpu']['gpu'].upcase == "SHARED") ? "SHARED" \
: properties['gpu']['gpu'] ? "YES" : "NO"
h['gpu_count'] = properties['gpu']['gpu_count'] h['gpu_count'] = properties['gpu']['gpu_count']
h['gpu_model'] = properties['gpu']['gpu_model'] h['gpu_model'] = properties['gpu']['gpu_model']
properties["monitoring"] ||= {} properties["monitoring"] ||= {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment