Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 4fd0a820 authored by POUILLOUX Laurent's avatar POUILLOUX Laurent
Browse files

Merge branch 'oaraliases' into 'master'

Oar gpu aliases finalization

See merge request !655
parents 35678502 90f329b2
No related branches found
No related tags found
1 merge request!655Oar gpu aliases finalization
Pipeline #921005 passed with warnings
...@@ -19,8 +19,10 @@ def get_sub_simplifier_default_aliases(options) ...@@ -19,8 +19,10 @@ def get_sub_simplifier_default_aliases(options)
end.to_h end.to_h
default_aliases.merge!(gpu_aliases) default_aliases.merge!(gpu_aliases)
gpu_mem_aliases = [6, 12, 16, 24, 32, 40, 60].map{|m| ["gpu-#{m}GB", {'value' => "gpu_mem>=#{m*1000}", 'category': 'GPUS', gpu_mem_aliases = [6, 12, 16, 24, 32, 40, 60].map{|m| ["gpu-#{m}GB",
'desc' => "Select node(s) with GPU having more than #{m}GB of memory"}]}.to_h {'value' => "gpu_mem>=#{m*1000}",
'desc' => "Select node(s) with GPU having more than #{m}GB of memory",
'category' => 'GPUs'}]}.to_h
default_aliases.merge!(gpu_mem_aliases) default_aliases.merge!(gpu_mem_aliases)
mem_aliases = {} mem_aliases = {}
......
...@@ -200,6 +200,9 @@ class OarPropertiesGenerator < WikiGenerator ...@@ -200,6 +200,9 @@ class OarPropertiesGenerator < WikiGenerator
"gpu_model" => { "gpu_model" => {
"description" => "The type of GPU available" "description" => "The type of GPU available"
}, },
"gpu_mem" => {
"description" => "The amount of memory in MB for the GPU"
},
"gpu_count" => { "gpu_count" => {
"description" => "The number of GPU cards available" "description" => "The number of GPU cards available"
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment