text icon indicating copy to clipboard operation
text copied to clipboard

Don't try to use AVX512 without OS support

Open silby opened this issue 4 months ago • 10 comments

AVX512 instructions require OS support as well as CPU support. Bits 5, 6, and 7 of XCR0 should be enabled to run with AVX512 support. This fixes SIGILL on OpenBSD, for example.

OpenBSD ports commit with identical patch

Required alongside the similar fix to simdutf pulled in by #564 for text to work right on OpenBSD when the processor flags AVX512 support.

silby avatar Feb 23 '24 18:02 silby