Open jirutka opened 10 months ago
Does the VM support AVX2
instructions?
Runtime detection is done through CPU flags. Maybe the VM sets the CPU flags incorrectly for some reason?
CI passes for the latest release for Alpine AMD64.
There's no automatic feature detection in tests. Tests try to run what was built, even if unsupported (the base64
utility uses the dynamic/runtime dispatch & is thus unaffected).
Maybe #145 could help (allows to disable some tests using environment variables).
When I build v0.5.1 using cmake on Alpine Linux x86_64 (running in a VM), the tests (not just benchmark) fail on illegal instruction. However, the
base64
utility works fine, so it seems that the detection is broken only in the tests? When I disable all AVX (-DBASE64_WITH_AVX512=OFF
,-DBASE64_WITH_AVX2=OFF
,-DBASE64_WITH_AVX=OFF
), the tests pass.I read related issues (#77, #95), but these are just about the benchmarks, not the tests.