Pytorch SIGILL bug

On my shitty laptop, I get a SIGILL signal when running some simple pytorch code. I ran it throught GDB and get the following:

Thread 1 “python3.6” received signal SIGILL, Illegal instruction.
0x00007fffb62cc5c4 in Sleef_expf8_u10fma4 () from /usr/local/lib/python3.6/dist-packages/torch/lib/libcaffe2.so

I checked, my laptop doesn’t support FMA instructions. Is that it? Do I need better hardware? It seems some runtime checking of supported instructions would have been a good idea…

It looks like other people have had similar issues. The answer seems to be to build from source. Even then the cmake file isn’t working correctly. I suggest run time cpu feature detection for fma, sse, avx and co.