File tree 1 file changed +5
-9
lines changed
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -42,18 +42,12 @@ def get_supported_cpu_templates():
42
42
43
43
SUPPORTED_CPU_TEMPLATES = get_supported_cpu_templates ()
44
44
45
- # Custom CPU templates for Aarch64 for testing
46
- AARCH64_CUSTOM_CPU_TEMPLATES_G2 = ["v1n1" ]
47
- AARCH64_CUSTOM_CPU_TEMPLATES_G3 = [
48
- "aarch64_with_sve_and_pac" ,
49
- "v1n1" ,
50
- ]
51
-
52
45
53
46
def get_supported_custom_cpu_templates ():
54
47
"""
55
48
Return the list of custom CPU templates supported by the platform.
56
49
"""
50
+ # pylint:disable=too-many-return-statements
57
51
host_linux = global_props .host_linux_version_tpl
58
52
59
53
match get_cpu_vendor (), global_props .cpu_codename :
@@ -65,9 +59,11 @@ def get_supported_custom_cpu_templates():
65
59
case CpuVendor .AMD , _:
66
60
return AMD_TEMPLATES
67
61
case CpuVendor .ARM , CpuModel .ARM_NEOVERSE_N1 if host_linux >= (6 , 1 ):
68
- return AARCH64_CUSTOM_CPU_TEMPLATES_G2
62
+ return [ "v1n1" ]
69
63
case CpuVendor .ARM , CpuModel .ARM_NEOVERSE_V1 if host_linux >= (6 , 1 ):
70
- return AARCH64_CUSTOM_CPU_TEMPLATES_G3
64
+ return ["v1n1" , "aarch64_with_sve_and_pac" ]
65
+ case CpuVendor .ARM , CpuModel .ARM_NEOVERSE_V1 :
66
+ return ["aarch64_with_sve_and_pac" ]
71
67
case _:
72
68
return []
73
69
You can’t perform that action at this time.
0 commit comments