<?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: Re:MKLConfig.cmake needs updating in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKLConfig-cmake-needs-updating/m-p/1640520#M36590</link>
    <description>&lt;P&gt;I tried everything again.&lt;/P&gt;&lt;P&gt;I'm adding to MKLConfig.cmake before line 903:&lt;/P&gt;&lt;P&gt;message( "MKL_THREADING=${MKL_THREADING}" )&lt;BR /&gt;message( "MKL_SYCL_THREADING=${MKL_SYCL_THREADING}" )&lt;/P&gt;&lt;P&gt;My&amp;nbsp;CMakeLists.txt is:&lt;/P&gt;&lt;P&gt;CMAKE_MINIMUM_REQUIRED( VERSION 3.30 )&lt;/P&gt;&lt;P&gt;project( prj )&lt;/P&gt;&lt;P&gt;find_package( MKL CONFIG REQUIRED )&lt;BR /&gt;link_libraries( MKL::MKL )&lt;/P&gt;&lt;P&gt;I'm running it like this:&lt;/P&gt;&lt;P&gt;mkdir build3&lt;BR /&gt;cd build3&lt;/P&gt;&lt;P&gt;call "C:/Program Files (x86)/Intel/oneAPI/compiler/2024.2/env/vars.bat"&lt;/P&gt;&lt;P&gt;cmake ^&lt;BR /&gt;-DCMAKE_BUILD_TYPE=Release ^&lt;BR /&gt;-DCMAKE_C_COMPILER=icx ^&lt;BR /&gt;-DCMAKE_CXX_COMPILER=icx ^&lt;BR /&gt;-DCMAKE_TOOLCHAIN_FILE=d:/vcpkg/scripts/buildsystems/vcpkg.cmake ^ -DVCPKG_TARGET_TRIPLET=x64-windows ^&lt;BR /&gt;-G Ninja ^&lt;BR /&gt;-Wno-dev ^&lt;BR /&gt;..&lt;/P&gt;&lt;P&gt;cd ..&lt;/P&gt;&lt;P&gt;The output is:&lt;/P&gt;&lt;P&gt;MKL_THREADING=intel_thread&lt;/P&gt;&lt;P&gt;MKL_SYCL_THREADING=tbb_thread&lt;BR /&gt;CMake Error at D:/vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package):&lt;BR /&gt;Could not find a package configuration file provided by "TBB" with any of&lt;BR /&gt;the following names:&lt;/P&gt;&lt;P&gt;TBBConfig.cmake&lt;BR /&gt;tbb-config.cmake&lt;/P&gt;&lt;P&gt;If I install tbb 2022 (worked this time) from here&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/developer/tools/oneapi/onetbb-download.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/developer/tools/oneapi/onetbb-download.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;then it works fine since it finds tbb.&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;How to I format code when posting on the forum? Usually, it's done using backticks.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2024 21:32:07 GMT</pubDate>
    <dc:creator>Zohar</dc:creator>
    <dc:date>2024-10-31T21:32:07Z</dc:date>
    <item>
      <title>MKLConfig.cmake needs updating</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKLConfig-cmake-needs-updating/m-p/1639490#M36567</link>
      <description>&lt;P&gt;There's a&amp;nbsp;find_package(TBB) on line 903, which fails since it's obsolete:&lt;/P&gt;&lt;P&gt;- There's no TBBConfig.cmake anymore.&lt;/P&gt;&lt;P&gt;- Installing standalone TBB does nothing.&lt;/P&gt;&lt;P&gt;You may also want to get your vcpkg port in order:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/microsoft/vcpkg/discussions/41789" target="_blank"&gt;https://github.com/microsoft/vcpkg/discussions/41789&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Oct 2024 09:31:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKLConfig-cmake-needs-updating/m-p/1639490#M36567</guid>
      <dc:creator>Zohar</dc:creator>
      <dc:date>2024-10-27T09:31:39Z</dc:date>
    </item>
    <item>
      <title>Re:MKLConfig.cmake needs updating</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKLConfig-cmake-needs-updating/m-p/1639939#M36573</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I can find the TBB configuration file:&lt;/P&gt;&lt;P&gt;&amp;gt;ls /opt/intel/oneapi/tbb/2021.13/lib/cmake/tbb/&lt;/P&gt;&lt;P&gt;TBBConfig.cmake&amp;nbsp;TBBConfigVersion.cmake&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;To use the TBB cmake, have you set the TBB environment?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Here is test CMakeList.txt :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;project(MyProject VERSION 1.0)&lt;/P&gt;&lt;P&gt;find_package(MKL CONFIG REQUIRED)&lt;/P&gt;&lt;P&gt;add_executable(my_executable main.cpp)&lt;/P&gt;&lt;P&gt;target_link_libraries(my_executable MKL::MKL)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Only setting oneMKL environment, an error reported on finding TBB package:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;source /opt/intel/oneapi/mkl/latest/env/vars.sh&lt;/P&gt;&lt;P&gt;&amp;gt;cmake -DMKL_THREADING=tbb_thread&amp;nbsp;..&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&amp;nbsp;but it set MKL_FOUND to FALSE so package "MKL" is considered to be NOT&lt;/P&gt;&lt;P&gt;&amp;nbsp;FOUND.&amp;nbsp;Reason given by package:&lt;/P&gt;&lt;P&gt;&amp;nbsp;TBB not found for the specified MKL_THREADING: tbb_thread&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Both setting oneMKL and TBB enviroment, the TBB package is found:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;source /opt/intel/oneapi/tbb/latest/env/vars.sh&lt;/P&gt;&lt;P&gt;&amp;gt;source /opt/intel/oneapi/mkl/latest/env/vars.sh&lt;/P&gt;&lt;P&gt;&amp;gt;cmake -DMKL_THREADING=tbb_thread&amp;nbsp;..&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;-- Found /opt/intel/oneapi/mkl/2025.0/lib/libmkl_scalapack_ilp64.so&lt;/P&gt;&lt;P&gt;-- Found /opt/intel/oneapi/mkl/2025.0/lib/libmkl_cdft_core.so&lt;/P&gt;&lt;P&gt;-- Found /opt/intel/oneapi/mkl/2025.0/lib/libmkl_intel_ilp64.so&lt;/P&gt;&lt;P&gt;-- Found /opt/intel/oneapi/mkl/2025.0/lib/libmkl_tbb_thread.so&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Chao&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Oct 2024 09:23:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKLConfig-cmake-needs-updating/m-p/1639939#M36573</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2024-10-29T09:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Re:MKLConfig.cmake needs updating</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKLConfig-cmake-needs-updating/m-p/1640112#M36578</link>
      <description>&lt;P&gt;As I said, the standalone tbb installation, weirdly, didn't install anything: there was no oneapi/tbb dir.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But let's say it did. If it's a dependency of MKL, then MKL should install it. But it's not. MKL already contains the tbb files, and if you comment out the &lt;SPAN&gt;find_package(TBB)&amp;nbsp;&lt;/SPAN&gt; code from the MKL cmakefile, then it works fine.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 01:47:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKLConfig-cmake-needs-updating/m-p/1640112#M36578</guid>
      <dc:creator>Zohar</dc:creator>
      <dc:date>2024-10-30T01:47:44Z</dc:date>
    </item>
    <item>
      <title>Re:MKLConfig.cmake needs updating</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKLConfig-cmake-needs-updating/m-p/1640193#M36580</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;What is the version of the standalone oneTBB there?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I checked the latest 2022 TBB standalone package, downloaded from here&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/developer/tools/oneapi/onetbb-download.html?operatingsystem=windows&amp;amp;distribution-windows=offline" target="_blank"&gt;https://www.intel.com/content/www/us/en/developer/tools/oneapi/onetbb-download.html?operatingsystem=windows&amp;amp;distribution-windows=offline&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The CMake files at Windows are available after installation: at C:\Program Files (x86)\Intel\oneAPI\tbb\2022.0\lib\cmake\tbb&amp;nbsp;&lt;/P&gt;&lt;P&gt;TBBConfig.cmake&amp;nbsp;TBBConfigVersion.cmake&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Similarly for Linux system as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regarding oneMKL in the oneMKL MKLConfig.cmake file:&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;if(MKL_THREADING STREQUAL "tbb_thread" OR MKL_SYCL_THREADING STREQUAL "tbb_thread")&lt;/P&gt;&lt;P&gt;&amp;nbsp;find_package(TBB CONFIG COMPONENTS tbb)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;By default, MKL_THREADING is set to "intel_thread" in Cmake files. It is not expected to report any error,  even without TBB installed. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Users need manually set MKL_THREADING to "tbb_thread" in their CMake files or linkage lines for MKLConfig.cmake to use TBB threading.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If MKL_THREADING is set to "tbb_thread", TBB need to be installed first.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Oct 2024 08:57:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKLConfig-cmake-needs-updating/m-p/1640193#M36580</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2024-10-30T08:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Re:MKLConfig.cmake needs updating</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKLConfig-cmake-needs-updating/m-p/1640520#M36590</link>
      <description>&lt;P&gt;I tried everything again.&lt;/P&gt;&lt;P&gt;I'm adding to MKLConfig.cmake before line 903:&lt;/P&gt;&lt;P&gt;message( "MKL_THREADING=${MKL_THREADING}" )&lt;BR /&gt;message( "MKL_SYCL_THREADING=${MKL_SYCL_THREADING}" )&lt;/P&gt;&lt;P&gt;My&amp;nbsp;CMakeLists.txt is:&lt;/P&gt;&lt;P&gt;CMAKE_MINIMUM_REQUIRED( VERSION 3.30 )&lt;/P&gt;&lt;P&gt;project( prj )&lt;/P&gt;&lt;P&gt;find_package( MKL CONFIG REQUIRED )&lt;BR /&gt;link_libraries( MKL::MKL )&lt;/P&gt;&lt;P&gt;I'm running it like this:&lt;/P&gt;&lt;P&gt;mkdir build3&lt;BR /&gt;cd build3&lt;/P&gt;&lt;P&gt;call "C:/Program Files (x86)/Intel/oneAPI/compiler/2024.2/env/vars.bat"&lt;/P&gt;&lt;P&gt;cmake ^&lt;BR /&gt;-DCMAKE_BUILD_TYPE=Release ^&lt;BR /&gt;-DCMAKE_C_COMPILER=icx ^&lt;BR /&gt;-DCMAKE_CXX_COMPILER=icx ^&lt;BR /&gt;-DCMAKE_TOOLCHAIN_FILE=d:/vcpkg/scripts/buildsystems/vcpkg.cmake ^ -DVCPKG_TARGET_TRIPLET=x64-windows ^&lt;BR /&gt;-G Ninja ^&lt;BR /&gt;-Wno-dev ^&lt;BR /&gt;..&lt;/P&gt;&lt;P&gt;cd ..&lt;/P&gt;&lt;P&gt;The output is:&lt;/P&gt;&lt;P&gt;MKL_THREADING=intel_thread&lt;/P&gt;&lt;P&gt;MKL_SYCL_THREADING=tbb_thread&lt;BR /&gt;CMake Error at D:/vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package):&lt;BR /&gt;Could not find a package configuration file provided by "TBB" with any of&lt;BR /&gt;the following names:&lt;/P&gt;&lt;P&gt;TBBConfig.cmake&lt;BR /&gt;tbb-config.cmake&lt;/P&gt;&lt;P&gt;If I install tbb 2022 (worked this time) from here&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/developer/tools/oneapi/onetbb-download.html" target="_blank"&gt;https://www.intel.com/content/www/us/en/developer/tools/oneapi/onetbb-download.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;then it works fine since it finds tbb.&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;How to I format code when posting on the forum? Usually, it's done using backticks.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 21:32:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKLConfig-cmake-needs-updating/m-p/1640520#M36590</guid>
      <dc:creator>Zohar</dc:creator>
      <dc:date>2024-10-31T21:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: MKLConfig.cmake needs updating</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKLConfig-cmake-needs-updating/m-p/1641290#M36600</link>
      <description>&lt;P&gt;Thank you for confirming that TBB 2022 can work in that environment.&lt;/P&gt;
&lt;P&gt;We have also fixed the CMakefile TBB issue in the latest oneMKL 2025 release. In the updated CMakefile:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; if(NOT TBB_FOUND)
   ....
    if(MKL_SYCL_THREADING STREQUAL "tbb_thread")
      set(SYCL_COMPILER OFF)
      mkl_message(WARNING "TBB not found for the specified MKL_SYCL_THREADING: ${MKL_SYCL_THREADING}. MKL::MKL_SYCL target will not be available.")
    endif()&lt;/LI-CODE&gt;
&lt;P&gt;A warning will be issued when using the Intel Compiler to build the code if TBB is NOT present. &lt;BR /&gt;This warning will indicate that some MKL functionalities (such as the SYCL interface) depend on TBB and cannot be used.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CMake Warning at /opt/intel/oneapi/mkl/2025.0/lib/cmake/mkl/MKLConfig.cmake:117 (message):
  TBB not found for the specified MKL_SYCL_THREADING: tbb_thread.
  MKL::MKL_SYCL target will not be available.&lt;/LI-CODE&gt;
&lt;P&gt;However, the code can still be built without any issues if this interface is not utilized.&lt;/P&gt;
&lt;P&gt;btw, if you also want to format code, it can choose "..."(expand toolbar) &amp;gt;&amp;gt; "&amp;lt;/&amp;gt;".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks,&lt;/P&gt;
&lt;P&gt;Chao&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 07:31:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKLConfig-cmake-needs-updating/m-p/1641290#M36600</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2024-11-05T07:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: MKLConfig.cmake needs updating</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKLConfig-cmake-needs-updating/m-p/1641438#M36604</link>
      <description>&lt;P&gt;Sounds good, thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 19:52:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKLConfig-cmake-needs-updating/m-p/1641438#M36604</guid>
      <dc:creator>Zohar</dc:creator>
      <dc:date>2024-11-05T19:52:58Z</dc:date>
    </item>
  </channel>
</rss>

