Skip to content

Commit 0a6c6c2

Browse files
committed
fix: correct namespace for CpuFeature::amx_bf16 in env_detect_precision.cpp
sed substitution previously broke daal::CpuFeature::amx_bf16 → daal::amx_bf16. amx_bf16 is a member of enum daal::CpuFeature, not daal namespace directly. Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
1 parent 76d5359 commit 0a6c6c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp/daal/src/services/compiler/generic/env_detect_precision.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ namespace
4949
/// True iff AMX-BF16 is present and OS-enabled (CPUID + XCR0 check via
5050
/// daal_serv_cpu_feature_detect(), which is also cached internally).
5151
static const bool g_hw_amx_bf16 =
52-
(daal_serv_cpu_feature_detect() & daal::amx_bf16) != 0;
52+
(daal_serv_cpu_feature_detect() & daal::CpuFeature::amx_bf16) != 0;
5353

5454
/// Parse ONEDAL_FLOAT32_MATMUL_PRECISION env var.
5555
/// Recognised values: "ALLOW_BF16" / "allow_bf16". Everything else → strict.

0 commit comments

Comments
 (0)