machyve / xhyve

xhyve, a lightweight OS X virtualization solution
Other
6.44k stars 354 forks source link

AVX2 bug in Docker Desktop on macOS #171

Open 1fish2 opened 4 years ago

1fish2 commented 4 years ago

See OpenBLAS issue #2244: "FATAL ERROR" messages building or running OpenBLAS v0.3.7 in Docker on macOS.

The OpenBLAS team (@brada4, @martin-frbg) concludes that xhyve has a bug in AVX2 support that will break fast math libraries, video codecs, and everything else compiled with -march=native:

To serve OpenBLAS it is sufficient to mask out any CPUID bits with the effect on CPU registers exceeding original AVX, an extension they seem to support.

brada4 commented 4 years ago

The fatal errors are encountered in comparisons after math accuracy tests, not the compilation itself, because of what seems like AVX2 state being corrupt at low level behind the scenes.