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

[Bug]: linking error using DLIB_USE_MKL_WITH_TBB = ON #2963

Open
amwink opened this issue Jun 7, 2024 · 1 comment
Open

[Bug]: linking error using DLIB_USE_MKL_WITH_TBB = ON #2963

amwink opened this issue Jun 7, 2024 · 1 comment

Comments

@amwink
Copy link

amwink commented Jun 7, 2024

What Operating System(s) are you seeing this problem on?

Linux (x86-64)

dlib version

19.24.4

Python version

3.11.8

Compiler

g++ 12.3.0-5

Expected Behavior

After seeing (with cmake-gui) that libraries mkl_tbb and mkl_tbb_thread are found and setting DLIB_USE_MKL_WITH_TBB to ON, for DLib to compile using the Intel-optimised routines.

Current Behavior

With DLIB_USE_MKL_WITH_TBB set to OFF, Compilation finishes, but with DLIB_USE_MKL_WITH_TBB set to ON, it gives these errors
dlib_errors_MKL_FFT.txt

Steps to Reproduce

With the switch set to OFF it compiles, with the switch set to ON it gives these linking errors.

Anything else?

Added the option '-ltbb' ( /usr/lib/x86_64-linux-gnu/libtbb.so points to libtbb.so.12.5 ) but CMake puts it at the start, when no symbols are added.

@amwink amwink changed the title [Bug]: linking error using DLIB_USE_MKL_FFT = ON [Bug]: linking error using DLIB_USE_MKL_WITH_TBB = ON Jun 7, 2024
@davisking
Copy link
Owner

You don't need to use the TBB. But if you want to you will have to figure out how to link to it for your platform and send us a PR that makes cmake know how to do it :)

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

No branches or pull requests

2 participants