Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipex 2.2.0 "import intel_extension_for_pytorch" gives "Illegal instruction (core dumped)" on Ubuntu 22.04 and J4105 CPU #551

Closed
sanderjo opened this issue Mar 3, 2024 · 5 comments
Assignees
Labels
CPU CPU specific issues NotAnIssue

Comments

@sanderjo
Copy link

sanderjo commented Mar 3, 2024

Describe the bug

Looks like #235 but for ipex version 2.2.0:

sander@brixit:~$ python3 -c 'import intel_extension_for_pytorch as ipex'
Illegal instruction (core dumped)
sander@brixit:~$ python3 -c 'import intel_extension_for_pytorch._C as core'
Illegal instruction (core dumped)
sander@brixit:~$ python3 -c 'import torch; import intel_extension_for_pytorch'
Illegal instruction (core dumped)
sander@brixit:~$ pip show intel_extension_for_pytorch
Name: intel-extension-for-pytorch
Version: 2.2.0
Summary: Intel® Extension for PyTorch*
Home-page: https://github.com/intel/intel-extension-for-pytorch
Author: Intel Corp.
Author-email:
License: https://www.apache.org/licenses/LICENSE-2.0
Location: /home/sander/.local/lib/python3.10/site-packages
Requires: numpy, packaging, psutil
Required-by:

Ubuntu 22.04.4 LTS, native on hardware
CPU: Intel(R) Celeron(R) J4105 CPU @ 1.50GHz

To show my python3 is OK:

sander@brixit:~$ python3 -c "print('hello')"
hello

Versions

sander@brixit:~$ python3 collect_env.py
Illegal instruction (core dumped)
@sanderjo
Copy link
Author

sanderjo commented Mar 3, 2024

Or is this a hint / cause:

sander@brixit:~$ python3
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.__version__
'2.2.1+cu121'
>>>

"cu" ... is that cuda? Which I don't have?

@sanderjo sanderjo changed the title ipex 2.2.0 "import intel_extension_for_pytorch" gives "Illegal instruction (core dumped) ipex 2.2.0 "import intel_extension_for_pytorch" gives "Illegal instruction (core dumped)" on Ubuntu 22.04 Mar 5, 2024
@YuningQiu
Copy link
Contributor

Hello, Intel(R) Celeron(R) J4105 CPU was brought to market in 2017/2018, and only has 4 CPU cores. Intel extension for pytorch might not support this SKU of CPU.

@sanderjo
Copy link
Author

sanderjo commented Mar 9, 2024

I know. But do you think a "core dumped" is the wanted behaviour? I would expect something more graceful.

@sanderjo sanderjo changed the title ipex 2.2.0 "import intel_extension_for_pytorch" gives "Illegal instruction (core dumped)" on Ubuntu 22.04 ipex 2.2.0 "import intel_extension_for_pytorch" gives "Illegal instruction (core dumped)" on Ubuntu 22.04 and J4105 CPU Mar 9, 2024
@YuningQiu
Copy link
Contributor

Hello, thanks for bringing this up. Actually, "core dumped" is a general/routine error when reported for this type of issue.

@jingxu10 jingxu10 added CPU CPU specific issues NotAnIssue labels Apr 17, 2024
@YuningQiu
Copy link
Contributor

Hello, thanks for your suggestions, and we will take them into considerations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CPU CPU specific issues NotAnIssue
Projects
None yet
Development

No branches or pull requests

3 participants