Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 661b38ea authored by MICHON Nicolas's avatar MICHON Nicolas
Browse files

[dev] wiki cpu_parameters: take microarchitecture from input instead of local file

parent ea23b9bf
Branches
No related tags found
No related merge requests found
sagittaire:
cpu_codename: N/A
sol:
cpu_codename: N/A
granduc:
cpu_codename: Merom
chinqchint:
cpu_codename: Penryn
genepi:
cpu_codename: Penryn
griffon:
cpu_codename: Penryn
talc:
cpu_codename: Penryn
parapide:
cpu_codename: Nehalem
edel:
cpu_codename: Nehalem
suno:
cpu_codename: Nehalem
parapluie:
cpu_codename: N/A
chirloute:
cpu_codename: Westmere
graphene:
cpu_codename: Nehalem
chimint:
cpu_codename: Westmere
hercule:
cpu_codename: Sandy Bridge
orion:
cpu_codename: Sandy Bridge
taurus:
cpu_codename: Sandy Bridge
econome:
cpu_codename: Sandy Bridge
petitprince:
cpu_codename: Sandy Bridge
graphite:
cpu_codename: Sandy Bridge
paranoia:
cpu_codename: Sandy Bridge
graphique:
cpu_codename: Haswell
parasilo:
cpu_codename: Haswell
paravance:
cpu_codename: Haswell
graoully:
cpu_codename: Haswell
grimoire:
cpu_codename: Haswell
grisou:
cpu_codename: Haswell
nova:
cpu_codename: Broadwell
grimani:
cpu_codename: Haswell
uva:
cpu_codename: Westmere
uvb:
cpu_codename: Dunnington
chetemi:
cpu_codename: Broadwell
chifflet:
cpu_codename: Broadwell
...@@ -31,9 +31,6 @@ table_columns = ["Installation date", "Site", "Cluster", "CPU Family", "CPU Vers ...@@ -31,9 +31,6 @@ table_columns = ["Installation date", "Site", "Cluster", "CPU Family", "CPU Vers
table_data = [] table_data = []
#Static cluster information not present in the ref-repo
cluster_data = YAML::load_file(File.join(File.dirname(File.expand_path(__FILE__)), 'clusters_data.yml'))
global_hash = load_yaml_file_hierarchy(File.expand_path("../../input/grid5000/", File.dirname(__FILE__))) global_hash = load_yaml_file_hierarchy(File.expand_path("../../input/grid5000/", File.dirname(__FILE__)))
# Loop over Grid'5000 sites # Loop over Grid'5000 sites
...@@ -46,14 +43,13 @@ global_hash["sites"].each { |site_uid, site_hash| ...@@ -46,14 +43,13 @@ global_hash["sites"].each { |site_uid, site_hash|
cpu_family = node_hash["processor"]["model"] rescue "" cpu_family = node_hash["processor"]["model"] rescue ""
cpu_version = node_hash["processor"]["version"] rescue "" cpu_version = node_hash["processor"]["version"] rescue ""
cpu_freq = node_hash["processor"]["clock_speed"] / 1000000000.0 rescue 0.0 #GHz cpu_freq = node_hash["processor"]["clock_speed"] / 1000000000.0 rescue 0.0 #GHz
cpu_codename = node_hash["processor"]["microarchitecture"] rescue ""
ht_enabled = node_hash["bios"]["configuration"]["ht_enabled"] rescue false ht_enabled = node_hash["bios"]["configuration"]["ht_enabled"] rescue false
turboboost_enabled = node_hash["bios"]["configuration"]["turboboost_enabled"] rescue false turboboost_enabled = node_hash["bios"]["configuration"]["turboboost_enabled"] rescue false
pstate_driver = node_hash["operating_system"]["pstate_driver"] rescue "" pstate_driver = node_hash["operating_system"]["pstate_driver"] rescue ""
cstate_driver = node_hash["operating_system"]["cstate_driver"] rescue "" cstate_driver = node_hash["operating_system"]["cstate_driver"] rescue ""
cpu_codename = cluster_data[cluster_uid]["cpu_codename"] rescue ""
#One line per cluster #One line per cluster
table_data << [ table_data << [
DateTime.new(*cluster_hash["created_at"].to_s.scan(/\d+/).map {|i| i.to_i}).strftime("%Y-%m-%d"), DateTime.new(*cluster_hash["created_at"].to_s.scan(/\d+/).map {|i| i.to_i}).strftime("%Y-%m-%d"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment