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.

MKL warning (undefined symbol: mkl_get_version_string)

See original GitHub issue

I was pointed here since a downstream project (fil profiler) said that this was a bug in threadpoolctl, but I think the library isn’t able to handle our MKL version:

Traceback (most recent call last):
  File "_ctypes/callbacks.c", line 232, in 'calling callback function'
  File "<PATH>/lib/venv3/lib64/python3.7/site-packages/threadpoolctl.py", line 400, in match_module_callback
    self._make_module_from_path(filepath)
  File "<PATH>/lib/venv3/lib64/python3.7/site-packages/threadpoolctl.py", line 515, in _make_module_from_path
    module = module_class(filepath, prefix, user_api, internal_api)
  File "<PATH>/lib/venv3/lib64/python3.7/site-packages/threadpoolctl.py", line 606, in __init__
    self.version = self.get_version()
  File "<PATH>/lib/venv3/lib64/python3.7/site-packages/threadpoolctl.py", line 711, in get_version
    self._dynlib.mkl_get_version_string(res, 200)
  File "/opt/python/python-3.7/lib64/python3.7/ctypes/__init__.py", line 372, in __getattr__
    func = self.__getitem__(name)
  File "/opt/python/python-3.7/lib64/python3.7/ctypes/__init__.py", line 377, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/local/lib/libmkl_rt.so: undefined symbol: mkl_get_version_string

I’m pretty sure the MKL version (as defined by INTEL_MKL_VERSION) is 20190004 if that helps.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ogriselcommented, Apr 6, 2021

Just to be safe, use grep -i (ignore case):

nm --demangle /usr/local/lib/libmkl_rt.so | grep -i "version"
1reaction
jeremiedbbcommented, Apr 6, 2021

What do you get listing symbols? You can do so and filter on version using : nm --demangle /usr/local/lib/libmkl_rt.so | grep “version”

Also, can you tell us the result of nm --demangle /usr/local/lib/libmkl_rt.so | grep "Version". I suspect you only have the MKL_Get_Version_String symbol.

Read more comments on GitHub >

github_iconTop Results From Across the Web

using MKL in cython fails with undefined symbol in shared ...
I've solved the problem by using static linking of MKL instead. Because I also failed to apply all the commands from static linking...
Read more >
MKL FATAL ERROR: undefined symbol: i_free
Hello, I'm trying to use Intel MKL 10.0.4.023 with some third party code (NumPy) on 64-bit Linux. I am able to successfully compile...
Read more >
Intel(R) Math Kernel Library Reference Manual
INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH INTEL(R) PRODUCTS. NO LICENSE,. EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, ...
Read more >
INTEL MKL: undefined symbol - OpenGeoSys Community
I installed the latest Version of INTEL MKL and compiled the latest version of OGS with OGS_USE_MKL . On execution I obtain the...
Read more >
Re: dld: warning: Undefined symbol '_d_dtoi' - Google Groups
dld: warning: Undefined symbol '_d_dtoi' >> I understand that its a linker error and on either trying to link it >> against libmold.a...
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