added support for xeon 6747p cpu (which wasn't recognized)

work related to [https://bugzilla.ipr.univ-rennes.fr/show_bug.cgi?id=4249]
This commit is contained in:
Guillaume Raffy 2025-12-19 18:21:30 +01:00
parent 13f219f3f8
commit 394d3dd179
3 changed files with 7 additions and 1 deletions

View File

@ -93,6 +93,11 @@ class CpuModel(IAutoParam):
if match: if match:
return f'intel_core_i{match["major_id"]}_{match["minor_id"].lower()}' return f'intel_core_i{match["major_id"]}_{match["minor_id"].lower()}'
# eg "Intel(R) Xeon(R) 6747P"
match = re.match(r'^Intel\(R\) Xeon\(R\) (?P<xeon_id>[^ ]+)$', cpu_model_name)
if match:
return f'intel_xeon_{match["xeon_id"].lower()}'
# eg "Intel(R) Xeon(R) Gold 6248R CPU @ 3.00GHz" # eg "Intel(R) Xeon(R) Gold 6248R CPU @ 3.00GHz"
match = re.match(r'Intel\(R\) Xeon\(R\) Gold +(?P<xeon_id>[^ ]+) +CPU +@ [0-9]+\.[0-9]+GHz', cpu_model_name) match = re.match(r'Intel\(R\) Xeon\(R\) Gold +(?P<xeon_id>[^ ]+) +CPU +@ [0-9]+\.[0-9]+GHz', cpu_model_name)
if match: if match:

View File

@ -1 +1 @@
__version__ = '0.0.16' __version__ = '0.0.17'

View File

@ -33,6 +33,7 @@ class CpuTestCase(unittest.TestCase):
r'Intel(R) Xeon(R) CPU E5-2660 v2 @ 2.20GHz': 'intel_xeon_e5-2660v2', r'Intel(R) Xeon(R) CPU E5-2660 v2 @ 2.20GHz': 'intel_xeon_e5-2660v2',
r'Intel(R) Xeon(R) CPU E5-2660 v4 @ 2.00GHz': 'intel_xeon_e5-2660v4', r'Intel(R) Xeon(R) CPU E5-2660 v4 @ 2.00GHz': 'intel_xeon_e5-2660v4',
r'Intel(R) Xeon(R) Gold 6248R CPU @ 3.00GHz': 'intel_xeon_gold_6248r', r'Intel(R) Xeon(R) Gold 6248R CPU @ 3.00GHz': 'intel_xeon_gold_6248r',
r'Intel(R) Xeon(R) 6747P': 'intel_xeon_6747p',
r'AMD EPYC 7282 16-Core Processor': 'amd_epyc_7282', r'AMD EPYC 7282 16-Core Processor': 'amd_epyc_7282',
r'AMD EPYC 7452 32-Core Processor': 'amd_epyc_7452', r'AMD EPYC 7452 32-Core Processor': 'amd_epyc_7452',
} }