cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
232 Views
Registered: ‎12-04-2019

Pytorch Illegal instruction (core dumped)

Jump to solution

I ran into this issue and followed this thread

https://forums.xilinx.com/t5/AI-and-Vitis-AI/Pytorch-Illegal-instruction-core-dumped/td-p/1134124

I rebuilt with two new conda environments and installed pytorch from its official conda channel in one and with default channel in other but both result in the same error

0 Kudos
Reply
1 Solution

Accepted Solutions
210 Views
Registered: ‎12-04-2019

installing pytorch from source solved the issue

install cudatoolkit-dev from conda ( installs nvcc)

export CUDA_HOME with appropriate path (usually the path which conda uses - path is displayed at the time of envirment creation or use which <conda environment>

 

clone v1.1.0 branch

 

git clone --branch v1.1.0 https://github.com/pytorch/pytorch.git pytorch-1.1.0

 

and follow the instructions in the link

https://github.com/pytorch/pytorch/tree/v1.1.0#from-source

similarly do for torch vision

 

View solution in original post

0 Kudos
Reply
1 Reply
211 Views
Registered: ‎12-04-2019

installing pytorch from source solved the issue

install cudatoolkit-dev from conda ( installs nvcc)

export CUDA_HOME with appropriate path (usually the path which conda uses - path is displayed at the time of envirment creation or use which <conda environment>

 

clone v1.1.0 branch

 

git clone --branch v1.1.0 https://github.com/pytorch/pytorch.git pytorch-1.1.0

 

and follow the instructions in the link

https://github.com/pytorch/pytorch/tree/v1.1.0#from-source

similarly do for torch vision

 

View solution in original post

0 Kudos
Reply