question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

undefined symbol: sgemm_ when importing IPEX

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
d0u9commented, Sep 14, 2020

OK, finally Conda saves me…

0reactions
d0u9commented, Sep 14, 2020

Is Conda compulsory? I haven’t install it in my environment. I use pyenv and install all necessary packages manually.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found