- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have both MKL and TBB installed with oneAPI 2025.2. When trying to detect MKL with `find_package(MKL CONFIG REQUIRED)` it fails because it claims that TBB cannot be found. Running the same operation with 2025.1 works without issue.
The difference appears to be because of line 837 of MKLConfig.cmake. In 2025.1 the line checks if TBB was not found using: `if(NOT TBB_FOUND)`. However in version 2025.2 it uses ` if(NOT TBB_tbb_FOUND)`
Modifying the cmake file so that line 837 matches how it was in version 2025.1 seems to fix the issue.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @NickAnthony
We need some information in order to help further.
- Which install method did you use to install oneMKL and TBB? - oneAPI installer/apt/pip etc.
- Are you using Linux or Windows?
- How did you setup the oneAPI runtime environment? Did you use setvars.sh/bat or manually setup the PATH and/or LD_LIBRARY_PATH values?
- Can you list the library files inside the tbb/2025.2/lib folder?
- Can you also upload the TBBConfig.cmake file from tbb/2025.2/lib/cmake folder?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am on Windows and I installed MKL and TBB with the 2025.2 oneAPI installer.
Although I have TBB 2022.2 installed from the oneAPI installer when I build I am actually using 2022.1 (provided by Vcpkg). So maybe it is just that the CMake file for MKL 2025.2 is incompatible with TBB 2022.1?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It should be compatible. Could you please provide the configure output with -DCMAKE_FIND_DEBUG_MODE=on?
Thanks,
Fengrui
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just to clarify - the issue you reported:
`find_package(MKL CONFIG REQUIRED)` fails because it claims that TBB cannot be found. Running the same operation with 2025.1 works without issue.
occurs because starting 2025.2, MKLConfig.cmake forces release version of TBB to be used whereas 2025.1 MKLConfig.cmake will work with `libtbb_debug.so/a/lib/dll` as well which may provide a lower performance than the release version of TBB (libtbb.so/a/lib/dll).
In your case, it is possible that you have 2 installations of TBB on your machine and/or only the debug TBB is available in the shell/vcpkg environment, so @Fengrui 's approach will help debug this environment setup.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page