We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5e485e commit cbe1bf0Copy full SHA for cbe1bf0
include/xsimd/config/xsimd_cpuid.hpp
@@ -197,8 +197,11 @@ namespace xsimd
197
// https://docs.kernel.org/admin-guide/hw-vuln/gather_data_sampling.html
198
199
unsigned sse_state_os_enabled = 1;
200
- unsigned avx_state_os_enabled = 1;
201
- unsigned avx512_state_os_enabled = 1;
+ // AVX and AVX512 strictly require OSXSAVE to be enabled by the OS.
+ // If OSXSAVE is disabled (e.g., via bcdedit /set xsavedisable 1),
202
+ // AVX state won't be preserved across context switches, so AVX cannot be used.
203
+ unsigned avx_state_os_enabled = 0;
204
+ unsigned avx512_state_os_enabled = 0;
205
206
// OSXSAVE: A value of 1 indicates that the OS has set CR4.OSXSAVE[bit
207
// 18] to enable XSETBV/XGETBV instructions to access XCR0 and
0 commit comments