Skip to content

Commit a3db575

Browse files
ggml-cpu: include BMI2 in backend score
1 parent 3bfd443 commit a3db575

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ggml/src/ggml-cpu/cpu-feats-x86.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ static int ggml_backend_cpu_x86_score() {
278278
if (!is.SSE42()) { return 0; }
279279
score += 1<<2;
280280
#endif
281+
#ifdef GGML_BMI2
282+
if (!is.BMI2()) { return 0; }
283+
score += 1<<3;
284+
#endif
281285
#ifdef GGML_AVX
282286
if (!is.AVX()) { return 0; }
283287
score += 1<<4;

0 commit comments

Comments
 (0)