<?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 MKL 2024.2 doesn't work with CMake in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-2024-2-doesn-t-work-with-CMake/m-p/1623726#M36327</link>
    <description>&lt;P&gt;Consider the following&amp;nbsp;contents of two files in the same directory:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;`CMakeLists.txt`:&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="none"&gt;cmake_minimum_required(VERSION 3.12)
project(test Fortran)
set(MKL_ARCH "intel64")
set(MKL_LINK "dynamic")
set(MKL_THREADING "sequential")
set(MKL_INTERFACE "lp64")
set(MKL_MPI "intelmpi")
find_package(MKL)
add_executable(test test.f90)
target_link_libraries(test ${MKL_LIBRARIES})&lt;/LI-CODE&gt;&lt;UL&gt;&lt;LI&gt;`test.f90`:&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="fortran"&gt;program p
real sdot
print*,sdot(1,[1.],1,[1.],1)
end&lt;/LI-CODE&gt;&lt;P&gt;An attempt to compile the program with the following commands in the same directory&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;mkdir build
cd build
FC=mpiifx cmake ..
cmake --build .&lt;/LI-CODE&gt;&lt;P&gt;results in an error `undefined reference to `sdot_'`.&lt;/P&gt;&lt;P&gt;It only happens with the newest MKL version 2024.2. The older MKL version 2024.1 works properly. Did something important change in the `MKLConfig.cmake` file? Am I missing something in the `CMakeLists.txt` file?&lt;/P&gt;</description>
    <pubDate>Fri, 16 Aug 2024 15:28:21 GMT</pubDate>
    <dc:creator>V-T</dc:creator>
    <dc:date>2024-08-16T15:28:21Z</dc:date>
    <item>
      <title>MKL 2024.2 doesn't work with CMake</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-2024-2-doesn-t-work-with-CMake/m-p/1623726#M36327</link>
      <description>&lt;P&gt;Consider the following&amp;nbsp;contents of two files in the same directory:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;`CMakeLists.txt`:&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="none"&gt;cmake_minimum_required(VERSION 3.12)
project(test Fortran)
set(MKL_ARCH "intel64")
set(MKL_LINK "dynamic")
set(MKL_THREADING "sequential")
set(MKL_INTERFACE "lp64")
set(MKL_MPI "intelmpi")
find_package(MKL)
add_executable(test test.f90)
target_link_libraries(test ${MKL_LIBRARIES})&lt;/LI-CODE&gt;&lt;UL&gt;&lt;LI&gt;`test.f90`:&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="fortran"&gt;program p
real sdot
print*,sdot(1,[1.],1,[1.],1)
end&lt;/LI-CODE&gt;&lt;P&gt;An attempt to compile the program with the following commands in the same directory&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;mkdir build
cd build
FC=mpiifx cmake ..
cmake --build .&lt;/LI-CODE&gt;&lt;P&gt;results in an error `undefined reference to `sdot_'`.&lt;/P&gt;&lt;P&gt;It only happens with the newest MKL version 2024.2. The older MKL version 2024.1 works properly. Did something important change in the `MKLConfig.cmake` file? Am I missing something in the `CMakeLists.txt` file?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 15:28:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-2024-2-doesn-t-work-with-CMake/m-p/1623726#M36327</guid>
      <dc:creator>V-T</dc:creator>
      <dc:date>2024-08-16T15:28:21Z</dc:date>
    </item>
    <item>
      <title>Re:MKL 2024.2 doesn't work with CMake</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-2024-2-doesn-t-work-with-CMake/m-p/1624286#M36331</link>
      <description>&lt;P&gt;Hello V-G,&lt;/P&gt;&lt;P&gt;Thank you for contacting us. We have been able to reproduce the issue and are investigating further. We will update this post once there are any improvements.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ruqiu&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Aug 2024 01:37:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-2024-2-doesn-t-work-with-CMake/m-p/1624286#M36331</guid>
      <dc:creator>Ruqiu_C_Intel</dc:creator>
      <dc:date>2024-08-20T01:37:41Z</dc:date>
    </item>
    <item>
      <title>Re:MKL 2024.2 doesn't work with CMake</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-2024-2-doesn-t-work-with-CMake/m-p/1624318#M36332</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;From oneMKL 2024.2, we recommend users use MKL::MKL instead of MKL_LIBRARIES&amp;nbsp;in target_link_libraries(test MKL::MKL)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;"&gt;Please use &lt;/SPAN&gt;MKL::MKL&lt;SPAN style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;"&gt;&amp;nbsp;target. You can also find an example in&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.intel.com/content/www/us/en/docs/onemkl/developer-guide-linux/2024-2/cmake-config-for-onemkl.html" rel="noopener noreferrer" target="_blank" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;"&gt;the oneMKL CMake documentation page&lt;/A&gt;&lt;SPAN style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ruqiu&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Aug 2024 04:41:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-2024-2-doesn-t-work-with-CMake/m-p/1624318#M36332</guid>
      <dc:creator>Ruqiu_C_Intel</dc:creator>
      <dc:date>2024-08-20T04:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Re:MKL 2024.2 doesn't work with CMake</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-2024-2-doesn-t-work-with-CMake/m-p/1624378#M36333</link>
      <description>&lt;P&gt;Thank you very much! That solves the issue.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 08:57:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-2024-2-doesn-t-work-with-CMake/m-p/1624378#M36333</guid>
      <dc:creator>V-T</dc:creator>
      <dc:date>2024-08-20T08:57:28Z</dc:date>
    </item>
  </channel>
</rss>

