Skip to content

Commit

Permalink
add cpu info check for lam and lass.
Browse files Browse the repository at this point in the history
  • Loading branch information
gxl8483336 authored and xhao22 committed Oct 27, 2024
1 parent 0f5da41 commit 2187c57
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
8 changes: 8 additions & 0 deletions BM/instruction-check/feature_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@
"cpuid": ['7', '0', '1', '0', 'a', '4'],
"platforms": {"SPR", "EMR", "GNR", "SRF", "CWF"}
},
"LASS": {
"cpuid": ['7', '0', '1', '0', 'a', '6'],
"platforms": {"SRF", "CWF"}
},
"CMPCCXADD": {
"cpuid": ['7', '0', '1', '0', 'a', '7'],
"platforms": {"SRF", "CWF"}
Expand All @@ -161,6 +165,10 @@
"cpuid": ['7', '0', '1', '0', 'a', '23'],
"platforms": {"SRF", "CWF"}
},
"LAM": {
"cpuid": ['7', '0', '1', '0', 'a', '26'],
"platforms": {"SRF", "CWF"}
},
"AVX_VNNI_INT8": {
"cpuid": ['7', '0', '1', '0', 'd', '4'],
"platforms": {"SRF", "CWF"}
Expand Down
15 changes: 15 additions & 0 deletions KVM/qemu/x86_cpu_flags.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@
auto_cpu_model = "no"
cpu_model = host
variants:
# SRF
- lam:
flags = "lam"
variants:
- default:
- disable:
cpu_model_flags = ",-lam"
no_flags = "lam"
- lass:
flags = "lass"
variants:
- default:
- disable:
cpu_model_flags = ",-lass"
no_flags = "lass"
# SPR
- avx512_fp16:
flags = "avx512_fp16"
Expand Down
4 changes: 4 additions & 0 deletions KVM/qemu/x86_cpuid.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
features = "AVX_NE_CONVERT"
- cmpccxadd:
features = "CMPCCXADD"
- lam:
features = "LAM"
- lass:
features = "LASS"
# GNR
- amx_fp16:
features = "AMX_FP16"
Expand Down

0 comments on commit 2187c57

Please sign in to comment.