Intel Xeon gold 5115 get illegal instruction core dumped when running fastai

I’ve got an illegal instruction (core dumped) error when running the fastai and dlib. The Xeon gold 5115 cpu has Intel® AVX-512. How can I handle this error?

The tensorflow 1.6 also has this problem, But tensorflow 1.5 is OK on this CPU.

I tried to compile the pytorch from scratch. But it also has the mkl,mkl_fft,mkl_random packages finally. And the inference speed became 0.1X.