Import torch Illegal instruction (core dumped)

Continuing the discussion from How to fix the python3? (Core dump…):

I only get the issue when import torch, working fine with numpy

I have done the solution is suggest in that topic, but cannot resolve my issue.

(myenv) dc9@ubuntu:~/Project_Quan/YOLOv9-DeepSORT-Object-Tracking-20240828T044936Z-001/YOLOv9-DeepSORT-Object-Tracking$ python3.8
Python 3.8.0 (default, Dec  9 2021, 17:53:27) 
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> import torch
Illegal instruction (core dumped)
(myenv) dc9@ubuntu:~/Project_Quan/YOLOv9-DeepSORT-Object-Tracking-20240828T044936Z-001/YOLOv9-DeepSORT-Object-Tracking$ echo $OPENBLAS_CORETYPE
ARMV8

Could anyone help me to resolve this issue ?

Hi,

Please check if you meet the same issue as below:

https://elinux.org/Jetson/L4T/TRT_Customized_Example#.22Illegal_instruction_.28core_dumped.29.22

Thanks.

I only encounter an issue when importing torch.

mporting numpy still works.

dc9@ubuntu:~/Downloads/Python-3.9.13$ python3
Python 3.9.13 (main, Aug 27 2024, 23:41:05) 
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.version.version
'1.19.4'
>>> import torch
Illegal instruction (core dumped)

I only encounter an issue when importing torch.

mporting numpy still works.

Hi,

Have you tried to setup the below global variable?

$ export OPENBLAS_CORETYPE=ARMV8

Thanks.

as above comment, I already export OPENBLAS_CORETYPE=ARMV8, it still failure…

After try python3.6 with install pytorch according PyTorch for Jetson , it working fine

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.