<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: oneMKL debug library mkl_tbb_threadd in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1711880#M37300</link>
    <description>&lt;P&gt;Great thank you for the confirmation!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If it appears it is not an expected behavior and if it is possible, I would still be curious to know if internally in the end it is using the oneTBB or the sequential threading layer to better understand the performances of our algorithms (even in debug).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Aug 2025 19:35:24 GMT</pubDate>
    <dc:creator>jeremybouny</dc:creator>
    <dc:date>2025-08-26T19:35:24Z</dc:date>
    <item>
      <title>oneMKL debug library mkl_tbb_threadd</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1706577#M37280</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;It has been few years since I have been using mkl/oneMKL. Until now, we made some shortcuts to use it with oneTBB: we were consuming the Release-only version of oneTBB, even in Debug mode.&lt;BR /&gt;While reworking our build process, I am trying to remove this hack and benefit from the oneMKL (2024.2) debug oneTBB threading layer library to allow using the Debug oneTBB library when building our project in Debug.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am experiencing the exact same issue described in an older post which got no answers: &lt;A href="https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-debug-version-of-TBB-with-MKL-on-Windows/m-p/1397723/highlight/true#M33358" target="_blank" rel="noopener"&gt;https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-debug-version-of-TBB-with-MKL-on-Windows/m-p/1397723/highlight/true#M33358&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are some details about what I am doing:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;linking against oneMKL 2024.2 (dynamic mode)&lt;/LI&gt;&lt;LI&gt;shipping only the required oneMKL libraries&lt;/LI&gt;&lt;LI&gt;using the official CMake config file (which should be this version &lt;A href="https://github.com/uxlfoundation/oneMath/blob/09b4123a126318e5cff0f6c32b5388ae8e8624cb/cmake/mkl/MKLConfig.cmake" target="_blank" rel="noopener"&gt;https://github.com/uxlfoundation/oneMath/blob/09b4123a126318e5cff0f6c32b5388ae8e8624cb/cmake/mkl/MKLConfig.cmake&lt;/A&gt;)&lt;UL&gt;&lt;LI&gt;it is globally matching what is described on the link advisor&lt;/LI&gt;&lt;LI&gt;I am here using the &lt;EM&gt;MKL::MKL&lt;/EM&gt; target&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;configuring oneMKL to use lp64 interface / tbb threading layer&lt;/LI&gt;&lt;LI&gt;building oneTBB 2021.13.0 on our side&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The main difference between the link advisor and the CMake config file is the reference to the &lt;EM&gt;mkl_tbb_threadd&lt;/EM&gt; library in CMake, the Debug version of the oneTBB threading layer used in Windows/Debug mode.&lt;BR /&gt;This library appeared a few years ago, but its use was never documented I think.&lt;BR /&gt;In theory, it seems it should finally allow us to use oneTBB in Debug, when working in Debug.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the only available documentation of this library is just the confirmation of its existence here: &lt;A href="https://www.intel.com/content/www/us/en/docs/onemkl/developer-guide-windows/2024-0/contents-of-the-bin-directory.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/docs/onemkl/developer-guide-windows/2024-0/contents-of-the-bin-directory.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;After dumping the dependencies I can confirm that &lt;EM&gt;mkl_tbb_threadd.2.dll&lt;/EM&gt; expects &lt;EM&gt;tbb12_debug.dll&lt;/EM&gt;, which is what I want.&lt;BR /&gt;However, when linking against &lt;EM&gt;mkl_tbb_threadd_dll.lib&lt;/EM&gt;, it is at runtime failing with the error:&lt;/P&gt;&lt;LI-CODE lang="none"&gt;INTEL oneMKL ERROR: The specified module could not be found. mkl_sequential.2.dll.
Intel oneMKL FATAL ERROR: Cannot load &amp;lt;mkl-thread-layer&amp;gt;.&lt;/LI-CODE&gt;&lt;P&gt;I thought maybe it was still searching for the Release oneTBB layer by mistake and tried to manually copy &lt;EM&gt;mkl_tbb_thread.2.dll&lt;/EM&gt; to the build folder, but same issue.&lt;BR /&gt;I then tried to copy &lt;EM&gt;mkl_sequential.2.dll&lt;/EM&gt;, which is working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So,&lt;BR /&gt;It seems that when linking against the Release library &lt;EM&gt;mkl_tbb_thread&lt;/EM&gt;, things are working properly.&lt;BR /&gt;However, when linking against the Debug library &lt;EM&gt;mkl_tbb_threadd&lt;/EM&gt;, I also need to add the &lt;EM&gt;mkl_sequential.2.dll&lt;/EM&gt; file in the application directory to make it work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am now doubting if oneMKL is using oneTBB in debug, or just using the sequential version. If it is really the behavior, I still don't see any reason to depend on the sequential version as we are asking for the oneTBB layer.&lt;BR /&gt;I checked the symbols out of curiosity, to see if the debug threading layer was exposing just a subset, but no, all the exposed symbols are similar on these three libraries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the end, I don't know if this Debug version of the threading layer should work or not. On the other side, it is partially handled on the official CMake file.&lt;BR /&gt;I would like to confirm what the status is and how to use oneMKL in Debug.&lt;BR /&gt;Forcing the use of oneTBB Release even in Debug is something I would prefer to avoid as it complexifies a lot our build process with no real reason. I am not sure neither of the Linux behavior, if there is something similar.&lt;/P&gt;&lt;P&gt;I may have missed some documentation or info. Moreover, I tried to deduce things, but I may also be completely wrong. Any official information would be helpful!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additional note 1:&lt;/P&gt;&lt;P&gt;The official MKLConfig.cmake file has only a partial support for this debug library. It is not working when using a multi configuration generator as it is based on the &lt;EM&gt;CMAKE_BUILD_TYPE&lt;/EM&gt; value.&lt;BR /&gt;Moreover, the latest version of this file is forcing oneTBB as release only, which makes me think something is not stable with the debug libraries: &lt;A href="https://github.com/uxlfoundation/oneMath/blob/cf9c3cb51e72c033e7dcfdbc3d5c9227ef28ba2b/cmake/mkl/MKLConfig.cmake#L865" target="_blank" rel="noopener"&gt;https://github.com/uxlfoundation/oneMath/blob/cf9c3cb51e72c033e7dcfdbc3d5c9227ef28ba2b/cmake/mkl/MKLConfig.cmake#L865&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Additional note 2:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;mkl_tbb_threadd&lt;/EM&gt; library can only be found in the installer. It seems it is not present in the pip nor conda packages while they both contain the &lt;EM&gt;MKLConfig.cmake&lt;/EM&gt; file referencing it, which is weird.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 08:42:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1706577#M37280</guid>
      <dc:creator>jeremybouny</dc:creator>
      <dc:date>2025-07-31T08:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: oneMKL debug library mkl_tbb_threadd</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1710633#M37293</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to test on a simple code with tbb debug threading layer, but didn't reproduce the issue. The case is attached.&lt;/P&gt;
&lt;P&gt;Did you see cmake look for&amp;nbsp;&lt;SPAN&gt;mkl_sequential.2.dll during configuration? In my case, the following command is used for configuration,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;"cmake . -G Ninja -DCMAKE_BUILD_TYPE=Debug -DMKL_THREADING=tbb_thread",&lt;/P&gt;
&lt;P&gt;and the corresponding output for tbb threading library is correct,&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;-- Found C:/Program Files (x86)/Intel/oneAPI/mkl/latest/lib/mkl_tbb_threadd_dll.lib&lt;BR /&gt;-- Found DLL: C:/Program Files (x86)/Intel/oneAPI/mkl/latest/bin/mkl_tbb_threadd.2.dll&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you check the output of configuration and share related lines?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Fengrui&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2025 00:14:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1710633#M37293</guid>
      <dc:creator>Fengrui</dc:creator>
      <dc:date>2025-08-20T00:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: oneMKL debug library mkl_tbb_threadd</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1711783#M37298</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the answer.&lt;/P&gt;&lt;P&gt;I confirm that in my case&amp;nbsp;&lt;SPAN class=""&gt;&lt;EM&gt;mkl_sequential.2.dll&lt;/EM&gt;&amp;nbsp;is never mentioned/searched at configuration time. I dumped all the CMake targets to check the behavior.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;It is really a runtime behavior once the application is compiled: When calling oneMKL functions, it is trying to dlopen&amp;nbsp;&lt;EM&gt;mkl_sequential.2.dll&lt;/EM&gt;, which is not found and failing, at least with the tested oneMKL 2024.2.&lt;BR /&gt;My main point is to understand if we should make the &lt;EM&gt;mkl_sequential.2.dll&lt;/EM&gt; library available at runtime in debug. If yes, is it an expected behavior, a misconfiguration from our side, or an issue on oneMKL side.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;We will soon try to switch to oneMKL 2025.x so I would prefer to be sure of the behavior to help this new migration.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2025 08:40:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1711783#M37298</guid>
      <dc:creator>jeremybouny</dc:creator>
      <dc:date>2025-08-26T08:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: oneMKL debug library mkl_tbb_threadd</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1711868#M37299</link>
      <description>&lt;P&gt;Thank you for the clarification! I can reproduce it now in debug mode if I remove mkl_sequential.2.dll. It is unexpected behavior to me. Let me report it internally as a bug.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2025 17:48:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1711868#M37299</guid>
      <dc:creator>Fengrui</dc:creator>
      <dc:date>2025-08-26T17:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: oneMKL debug library mkl_tbb_threadd</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1711880#M37300</link>
      <description>&lt;P&gt;Great thank you for the confirmation!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If it appears it is not an expected behavior and if it is possible, I would still be curious to know if internally in the end it is using the oneTBB or the sequential threading layer to better understand the performances of our algorithms (even in debug).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Aug 2025 19:35:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1711880#M37300</guid>
      <dc:creator>jeremybouny</dc:creator>
      <dc:date>2025-08-26T19:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: oneMKL debug library mkl_tbb_threadd</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1717714#M37344</link>
      <description>&lt;P&gt;The fix of this issue will be included in oneMKL 2025.3 release.&lt;/P&gt;
&lt;P&gt;Although the sequential library is loaded in debug mode in 2025.2, internally oneTBB is used for threading.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 19:55:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1717714#M37344</guid>
      <dc:creator>Fengrui</dc:creator>
      <dc:date>2025-09-18T19:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: oneMKL debug library mkl_tbb_threadd</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1717836#M37351</link>
      <description>&lt;P&gt;Thank you for confirming the behavior, that's helpful! And great news for the fix also.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2025 08:10:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1717836#M37351</guid>
      <dc:creator>jeremybouny</dc:creator>
      <dc:date>2025-09-19T08:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: oneMKL debug library mkl_tbb_threadd</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1724691#M37429</link>
      <description>&lt;P&gt;The oneMKL 2025.3 release is available now. Did you get the chance to test it?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 21:36:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1724691#M37429</guid>
      <dc:creator>Fengrui</dc:creator>
      <dc:date>2025-11-03T21:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: oneMKL debug library mkl_tbb_threadd</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1726044#M37441</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I am starting some tests with this version to see how it behaves.&lt;BR /&gt;However, I am a bit worried of the mentioned known issue in the release note "oneMKL LAPACK direct call routines on Windows with TBB threading may crash". Is there any additional information about it? Like, is which routines and under which conditions? Just wrote this way it looks like a blocker to me as I would like to keep oneTBB as the threading layer.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 21:33:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1726044#M37441</guid>
      <dc:creator>jeremybouny</dc:creator>
      <dc:date>2025-11-12T21:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: oneMKL debug library mkl_tbb_threadd</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1726074#M37442</link>
      <description>&lt;P&gt;It happens sporadically and we are still working on root-causing this issue. So I'm afraid it is hard to provide more information as of now. But it only affects the &lt;A href="https://www.intel.com/content/www/us/en/docs/onemkl/developer-guide-linux/2025-2/using-mkl-direct-call-in-c-applications.html" target="_self"&gt;direct call&lt;/A&gt; usage for small-sized problems. Are direct calls of LAPACK functions used in your application?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2025 00:10:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1726074#M37442</guid>
      <dc:creator>Fengrui</dc:creator>
      <dc:date>2025-11-13T00:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: oneMKL debug library mkl_tbb_threadd</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1726150#M37444</link>
      <description>&lt;P&gt;That is really interesting information thank you. We are not (to my knowledge) using any direct call after checking it.&lt;BR /&gt;To be honest, I am just discovering this feature by the way, it is good to know.&lt;BR /&gt;There are however various LAPACK calls either from our projects or from external libraries.&lt;BR /&gt;It feels I still have to pay attention to all our Eigen usage where MKL_DIRECT_CALL might be used depending on the configuration.&lt;/P&gt;&lt;P&gt;So, if it appears we are really not using the direct call feature at all, do you confirm there should be no issues?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2025 08:05:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1726150#M37444</guid>
      <dc:creator>jeremybouny</dc:creator>
      <dc:date>2025-11-13T08:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: oneMKL debug library mkl_tbb_threadd</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1726868#M37447</link>
      <description>&lt;P&gt;There should be no issues if the direct call feature is not used.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 00:01:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/oneMKL-debug-library-mkl-tbb-threadd/m-p/1726868#M37447</guid>
      <dc:creator>Fengrui</dc:creator>
      <dc:date>2025-11-19T00:01:11Z</dc:date>
    </item>
  </channel>
</rss>

