undefined symbol: sgemm_ when importing IPEX
See original GitHub issueI build pytorch and IPEX according to the README in Ubuntu 20.04
Everything is find until I execute import intel_pytorch_extension as ipex
.
Error reported:
ImportError Traceback (most recent call last)
<ipython-input-3-1031a6c8b3e2> in <module>
----> 1 import intel_pytorch_extension as ipex
~/.pyenv/versions/pytorch/lib/python3.7/site-packages/torch_ipex-1.0.0-py3.7-linux-x86_64.egg/intel_pytorch_extension/__init__.py in <module>
5 from .version import __version__
6 from .tensor import *
----> 7 from .optim import *
8 from .ops import *
9 import _torch_ipex as core
~/.pyenv/versions/pytorch/lib/python3.7/site-packages/torch_ipex-1.0.0-py3.7-linux-x86_64.egg/intel_pytorch_extension/optim/__init__.py in <module>
----> 1 from .split_sgd import is_available
2 from .split_sgd import SplitSGD
~/.pyenv/versions/pytorch/lib/python3.7/site-packages/torch_ipex-1.0.0-py3.7-linux-x86_64.egg/intel_pytorch_extension/optim/split_sgd.py in <module>
1 import torch
2 from torch.optim.optimizer import Optimizer, required
----> 3 import _torch_ipex
4
5 _available = False
ImportError: /home/user/.pyenv/versions/pytorch/lib/python3.7/site-packages/torch_ipex-1.0.0-py3.7-linux-x86_64.egg/_torch_ipex.cpython-37m-x86_64-linux-gnu.so: undefined symbol: sgemm_
It can barely find any thing about sgemm__ symbol in Google. What happened here?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Numpy multiarray.so: undefined symbol: cblas_sgemm
3 from an RPM package and copied it into a local directory, rather than either building it from source or installing it via...
Read more >undefined symbol: cblas_sgemm · Issue #12999 - GitHub
Now, I cannot import numpy or matplotlib and for both get a similar error and the message telling me to raise this new...
Read more >Undefined symbol: cblas_sgemm_alloc - PyTorch Forums
Hi, guys, after installing PyTorch 1.0, I am facing the following error: >>> import torch Traceback (most recent call last): File "<stdin>", ...
Read more >undefined reference to symbol dgemm cblas error - Ask Ubuntu
undefined reference to symbol 'dgemm_' 'dgemm_' is defined in DSO /usr/lib/libblas.so.3gf so try adding it to the linker command line.
Read more >203638 – math/py-numpy: Undefined symbol "cblas_sgemm"
numpy version py27-numpy-1.10.0,1 on FreeBSD 10.2. Configured with NETLIB as the BLAS library >>> import numpy Traceback (most recent call ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
OK, finally Conda saves me…
Is Conda compulsory? I haven’t install it in my environment. I use
pyenv
and install all necessary packages manually.