From 6b8f8bae11d669fab7c5e35ccf8dbab950897c70 Mon Sep 17 00:00:00 2001 From: Alexander Beedie Date: Thu, 29 Feb 2024 11:59:07 +0400 Subject: [PATCH] fix: add missing "pclmulqdq" instruction to `_cpu_check` ("read_cpu_flags") (#14758) --- py-polars/polars/_cpu_check.py | 1 + 1 file changed, 1 insertion(+) diff --git a/py-polars/polars/_cpu_check.py b/py-polars/polars/_cpu_check.py index e6033eac91ef..3edb30df7694 100644 --- a/py-polars/polars/_cpu_check.py +++ b/py-polars/polars/_cpu_check.py @@ -205,6 +205,7 @@ def read_cpu_flags() -> dict[str, bool]: "sse4.1": bool(cpuid1.ecx & (1 << 19)), "sse4.2": bool(cpuid1.ecx & (1 << 20)), "popcnt": bool(cpuid1.ecx & (1 << 23)), + "pclmulqdq": bool(cpuid1.ecx & (1 << 1)), "avx": bool(cpuid1.ecx & (1 << 28)), "bmi1": bool(cpuid7.ebx & (1 << 3)), "bmi2": bool(cpuid7.ebx & (1 << 8)),