Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
5.15, 6.0.0
-
None
Description
Rosetta translates all x86_64 instructions, but it doesn’t support the execution of some newer instruction sets and processor features, such as AVX, AVX2, and AVX512 vector instructions. If you include these newer instructions in your code, execute them only after verifying that they are available. For example, to determine if AVX512 vector instructions are available, use the sysctlbyname function to check the hw.optional.avx512f attribute.
The qDetectCpuFeatures() logic in qsimd.cpp may need to adjust to this, if the existing xgetbv-based logic does not pick it up.
Attachments
Issue Links
- relates to
-
QTBUG-85279 Qt for macOS on Apple Silicon (arm64)
- Closed