diff --git a/doc/README.generators.md b/doc/README.generators.md index eda9bba796f54b29f3eec9fe4e3d62016572c484..00e6cd7fa103cb0fb55cc69af6970537ea7d57ed 100644 --- a/doc/README.generators.md +++ b/doc/README.generators.md @@ -13,7 +13,7 @@ This directory contains the input files and scripts needed for generating: - The OAR properties ie. the node information that is registered in OAR databases and allows user to select resources matching their experiment requirements. - Ex: $ oarsub -p "wattmeter=’YES’ and gpu=’YES’ and eth10g=’Y’" + Ex: $ oarsub -p "wattmeter=’YES’ and eth10g=’Y’" - The configuration files of the following puppet modules: bindg5kb, conmang5k, dhcpg5k, kadeployg5k and lanpowerg5k. diff --git a/lib/refrepo/gen/oar-properties.rb b/lib/refrepo/gen/oar-properties.rb index dde495dcba85a3231ba658902645a7d71b66b2af..43055befe85b2ae7a2eb7e525066b95f5a7b66d9 100644 --- a/lib/refrepo/gen/oar-properties.rb +++ b/lib/refrepo/gen/oar-properties.rb @@ -126,10 +126,10 @@ def get_ref_node_properties_internal(cluster_uid, cluster, node_uid, node) h['memnode'] = node['main_memory']['ram_size'] / MiB if node.key?('gpu') && node['gpu']['gpu'] == true - h['gpu'] = node['gpu']['gpu_model'] + h['gpu_model'] = node['gpu']['gpu_model'] h['gpu_count'] = node['gpu']['gpu_count'] else - h['gpu'] = false + h['gpu_model'] = false h['gpu_count'] = 0 end diff --git a/lib/refrepo/gen/wiki/generators/oar_properties.rb b/lib/refrepo/gen/wiki/generators/oar_properties.rb index 8e2603384d62f4354eaeed4f0695798f0d43a29d..9963ff2036322b865d668aa9e53376e6013781bd 100644 --- a/lib/refrepo/gen/wiki/generators/oar_properties.rb +++ b/lib/refrepo/gen/wiki/generators/oar_properties.rb @@ -123,12 +123,16 @@ class OarPropertiesGenerator < WikiGenerator "memnode" => { "description" => "The total amount of memory in MB of the node" }, - "gpu" => { + "gpu_model" => { "description" => "The type of GPU available" }, "gpu_count" => { "description" => "The number of GPU cards available" }, + "gpu" => { + "description" => "The ID of the GPU the resource is part of. The unique scope is the OAR server. ", + "possible_values" => "1, 2, 3, ..." + }, "wattmeter" => { "description" => "The type of wattmeter available" }, @@ -142,7 +146,7 @@ class OarPropertiesGenerator < WikiGenerator @@categories = { "Job-related properties" => ["besteffort", "deploy", "production", "cluster_priority", "max_walltime"], "Hierarchy" => ["cluster", "cpu", "core", "host", "network_address", "ip", "switch"], - "Hardware" => ["gpu", "gpu_count", "memnode", "memcore", "memcpu", "disktype", "disk_reservation_count", "myri_rate", "myri_count", "myri", "ib_rate", "ib_count", "ib", "opa", "opa_rate", "opa_count", "eth_rate", "eth_count", "cpufreq", "cputype", "cpucore", "cpuarch", "virtual", "mic"], + "Hardware" => ["gpu_model", "gpu_count", "memnode", "memcore", "memcpu", "disktype", "disk_reservation_count", "myri_rate", "myri_count", "myri", "ib_rate", "ib_count", "ib", "opa", "opa_rate", "opa_count", "eth_rate", "eth_count", "cpufreq", "cputype", "cpucore", "cpuarch", "virtual", "mic"], "Miscellaneous" => ["wattmeter", "nodemodel"] } diff --git a/lib/refrepo/valid/oar-properties.rb b/lib/refrepo/valid/oar-properties.rb index 993215b1cef299ba41d3456112065c843f867dee..a34cee47bc71695fecaf4b2b54561aac3193ab7b 100644 --- a/lib/refrepo/valid/oar-properties.rb +++ b/lib/refrepo/valid/oar-properties.rb @@ -7,7 +7,7 @@ require 'hashdiff' IGNORED_PROPERTIES=%w{} # Propriétés qui devraient être présentes -G5K_PROPERTIES=%w{api_timestamp available_upto besteffort chassis chunks cluster cluster_priority comment core cpu cpuarch cpucore cpufreq cpuset cputype deploy desktop_computing disk disk_reservation_count diskpath disktype drain eth_count eth_rate expiry_date finaud_decision gpu gpu_count grub host ib ib_count ib_rate id ip last_available_upto last_job_date links maintenance max_walltime memcore memcpu memnode mic myri myri_count myri_rate network_address next_finaud_decision next_state nodemodel production rconsole scheduler_priority slash_16 slash_17 slash_18 slash_19 slash_20 slash_21 slash_22 state state_num subnet_address subnet_prefix suspended_jobs switch type virtual vlan wattmeter opa opa_count opa_rate}.sort - IGNORED_PROPERTIES +G5K_PROPERTIES=%w{api_timestamp available_upto besteffort chassis chunks cluster cluster_priority comment core cpu cpuarch cpucore cpufreq cpuset cputype deploy desktop_computing disk disk_reservation_count diskpath disktype drain eth_count eth_rate expiry_date finaud_decision gpu_model gpu_count gpu grub host ib ib_count ib_rate id ip last_available_upto last_job_date links maintenance max_walltime memcore memcpu memnode mic myri myri_count myri_rate network_address next_finaud_decision next_state nodemodel production rconsole scheduler_priority slash_16 slash_17 slash_18 slash_19 slash_20 slash_21 slash_22 state state_num subnet_address subnet_prefix suspended_jobs switch type virtual vlan wattmeter opa opa_count opa_rate}.sort - IGNORED_PROPERTIES module RefRepo::Valid::OarProperties