Skip to content

Commit

Permalink
test: test ARM CPU templates in Linux host 5.10
Browse files Browse the repository at this point in the history
Add the SVE CPU template as a valid template in 5.10 since it works.

Signed-off-by: Pablo Barbáchano <[email protected]>
  • Loading branch information
pb8o committed Nov 13, 2024
1 parent 5a23130 commit 6faf258
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions tests/framework/utils_cpu_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,6 @@ def get_supported_cpu_templates():

SUPPORTED_CPU_TEMPLATES = get_supported_cpu_templates()

# Custom CPU templates for Aarch64 for testing
AARCH64_CUSTOM_CPU_TEMPLATES_G2 = ["v1n1"]
AARCH64_CUSTOM_CPU_TEMPLATES_G3 = [
"aarch64_with_sve_and_pac",
"v1n1",
]


def get_supported_custom_cpu_templates():
"""
Expand All @@ -65,9 +58,11 @@ def get_supported_custom_cpu_templates():
case CpuVendor.AMD, _:
return AMD_TEMPLATES
case CpuVendor.ARM, CpuModel.ARM_NEOVERSE_N1 if host_linux >= (6, 1):
return AARCH64_CUSTOM_CPU_TEMPLATES_G2
return ["v1n1"]
case CpuVendor.ARM, CpuModel.ARM_NEOVERSE_V1 if host_linux >= (6, 1):
return AARCH64_CUSTOM_CPU_TEMPLATES_G3
return ["v1n1", "aarch64_with_sve_and_pac"]
case CpuVendor.ARM, CpuModel.ARM_NEOVERSE_V1:
return ["aarch64_with_sve_and_pac"]
case _:
return []

Expand Down

0 comments on commit 6faf258

Please sign in to comment.