Import torch failed with Illegal instruction (core dumped)

Hi all,
I built PyTorch library from source code. But when I run simple “import torch” it fails with Illegal instruction (core dumped).

Starting program: /home/mkr/anaconda3/envs/pytorch-build/bin/python
[Thread debugging using libthread_db enabled]
Using host libthread_db library “/lib/x86_64-linux-gnu/”.
[Detaching after fork from child process 73595]

Program received signal SIGILL, Illegal instruction.
0x00007fffe567393d in __static_initialization_and_destruction_0(int, int) [clone .constprop.0] ()
from /home/mkr/anaconda3/envs/pytorch-build/lib/python3.8/site-packages/torch/lib/

How can I fix it?

Thanks in advance