Skip to content

Commit

Permalink
fix(test): identify other CPUs as Skylake
Browse files Browse the repository at this point in the history
c5n.metal instances have an Skylake CPU like:

    Intel(R) Xeon(R) Platinum 8124M CPU

Identify it as such.

Signed-off-by: Pablo Barbáchano <[email protected]>
  • Loading branch information
pb8o committed Nov 15, 2023
1 parent 7febde3 commit af47fb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/framework/utils_cpu_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def get_supported_cpu_templates():
match cpuid_utils.get_cpu_vendor():
case cpuid_utils.CpuVendor.INTEL:
# T2CL template is only supported on Cascade Lake and newer CPUs.
skylake_model = "Intel(R) Xeon(R) Platinum 8175M CPU @ 2.50GHz"
if global_props.cpu_model == skylake_model:

if global_props.cpu_codename == cpuid_utils.CpuModel.INTEL_SKYLAKE:
return sorted(set(INTEL_TEMPLATES) - set(["T2CL"]))
return INTEL_TEMPLATES
case cpuid_utils.CpuVendor.AMD:
Expand Down
1 change: 1 addition & 0 deletions tests/framework/utils_cpuid.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class CpuModel(str, Enum):
CPU_DICT = {
CpuVendor.INTEL: {
"Intel(R) Xeon(R) Platinum 8175M CPU": "INTEL_SKYLAKE",
"Intel(R) Xeon(R) Platinum 8124M CPU": "INTEL_SKYLAKE",
"Intel(R) Xeon(R) Platinum 8259CL CPU": "INTEL_CASCADELAKE",
"Intel(R) Xeon(R) Platinum 8375C CPU": "INTEL_ICELAKE",
},
Expand Down

0 comments on commit af47fb3

Please sign in to comment.