<?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 CMakelists.txt is incompatible with shipped CMake version in Docker image in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneMKL-CMakelists-txt-is-incompatible-with-shipped-CMake-version/m-p/1352272#M32597</link>
    <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/211387"&gt;@sudoLife&lt;/a&gt; said, ".. there is an old cmake in /usr/bin/cmake and a new one in /usr/local/bin/cmake, so all I had to do was use the new path. Why are there two of them?"&lt;/P&gt;
&lt;P&gt;Because you, or an administrator, or the installer of some other package, installed a newer version of cmake in the /usr/local tree. I think that there is a reason why add-ons should go into /usr/local rather than overwrite the original cmake in /usr/bin. Other users of the system, or even the Linux OS itself, may become unstable if experimental versions are allowed to replace the versions that the system came with.&lt;/P&gt;
&lt;P&gt;I did this to myself once many years ago. A package that I was installing complained that the libc.so.6 that I had was too old for the new package to work. I obtained a newer version of libc.so.6, and replaced the existing version with this. The result of this careless action was that I had to reinstall Linux, because even commands such as &lt;STRONG&gt;ls&lt;/STRONG&gt; stopped to work, as most of the system utilities depend on libc.so.6.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jan 2022 17:47:34 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2022-01-18T17:47:34Z</dc:date>
    <item>
      <title>OneMKL CMakelists.txt is incompatible with shipped CMake version in Docker image</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneMKL-CMakelists-txt-is-incompatible-with-shipped-CMake-version/m-p/1351917#M32585</link>
      <description>&lt;P&gt;I am using intel/oneapi:latest image. I tried compiling a simple hello world project with the following CMakeLists.txt:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="none"&gt;cmake_minimum_required(VERSION 3.10)
project(dockertest)

set(CMAKE_CXX_STANDARD 17)

find_package(MKL)

add_executable(dockertest main.cpp)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The CMake version is 3.10.2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="bash"&gt;/usr/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /tmp/dockertest
-- MKL_ARCH: intel64
-- MKL_LINK: dynamic
-- MKL_INTERFACE_FULL: intel_ilp64
-- MKL_THREADING: intel_thread
-- MKL_MPI: intelmpi
-- Found MKL: intelmpi  
-- Found MKL: /opt/intel/oneapi/mkl/2022.0.1  
-- Found MKL: /opt/intel/oneapi/mkl/2022.0.1/lib/intel64/libmkl_intel_ilp64.so  
-- Found MKL: /opt/intel/oneapi/mkl/2022.0.1/lib/intel64/libmkl_core.so  
-- Found MKL: /opt/intel/oneapi/mkl/2022.0.1/lib/intel64/libmkl_intel_thread.so  
-- Found MKL: /opt/intel/oneapi/compiler/latest/linux/compiler/lib/intel64/libiomp5.so  
-- Configuring incomplete, errors occurred!
See also "/tmp/dockertest/cmake-build-debug-docker/CMakeFiles/CMakeOutput.log".
CMake Error at /usr/local/lib/cmake/mkl-2022.0.1/MKLConfig.cmake:448 (list):
  list does not recognize sub-command PREPEND
Call Stack (most recent call first):
  CMakeLists.txt:6 (find_package)


CMake Error at /usr/local/lib/cmake/mkl-2022.0.1/MKLConfig.cmake:449 (list):
  list does not recognize sub-command PREPEND
Call Stack (most recent call first):
  CMakeLists.txt:6 (find_package)


CMake Error at /usr/local/lib/cmake/mkl-2022.0.1/MKLConfig.cmake:450 (list):
  list does not recognize sub-command PREPEND
Call Stack (most recent call first):
  CMakeLists.txt:6 (find_package)


CMake Error at /usr/local/lib/cmake/mkl-2022.0.1/MKLConfig.cmake:729 (target_compile_options):
  Cannot specify compile options for imported target "MKL::MKL".
Call Stack (most recent call first):
  CMakeLists.txt:6 (find_package)


CMake Error at /usr/local/lib/cmake/mkl-2022.0.1/MKLConfig.cmake:738 (target_include_directories):
  Cannot specify include directories for imported target "MKL::MKL".
Call Stack (most recent call first):
  CMakeLists.txt:6 (find_package)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I understand, CMake added PREPEND in 3.15, so the current version has no clue what it is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;UPDATE: The reason this happened was, there is an old cmake in /usr/bin/cmake and a new one in /usr/local/bin/cmake, so all I had to do was use the new path. Why are there two of them?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 11:19:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneMKL-CMakelists-txt-is-incompatible-with-shipped-CMake-version/m-p/1351917#M32585</guid>
      <dc:creator>sudoLife</dc:creator>
      <dc:date>2022-01-17T11:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: OneMKL CMakelists.txt is incompatible with shipped CMake version in Docker image</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneMKL-CMakelists-txt-is-incompatible-with-shipped-CMake-version/m-p/1352205#M32591</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting on Intel Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;UPDATE: The reason this happened was, there is an old cmake in /usr/bin/cmake and a new one in /usr/local/bin/cmake, so all I had to do was use the new path. Why are there two of them?&lt;/P&gt;
&lt;P&gt;Could you please elaborate what do you mean by old cmake and new cmake as mentioned here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the Cmake under the new path which was mentioned by you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to integrate oneMKL into your CMake projects, starting with the Intel® oneAPI Math Kernel Library (oneMKL) 2021.3 release, MKLConfig.cmake is provided as part of the package and installation. MKLConfig.cmake supports all oneMKL configurations, compilers, and runtimes, as the oneMKL product itself. Help/usage is provided in the top section of MKLConfig.cmake.&lt;/P&gt;
&lt;P&gt;For more information about MKLConfig.cmake, kindly refer to below link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/onemkl-windows-developer-guide/top/getting-started/cmake-config-for-onemkl.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/develop/documentation/onemkl-windows-developer-guide/top/getting-started/cmake-config-for-onemkl.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have tried executing with the provided CMakeLists.txt using /usr/bin/cmake as mentioned by you and we could see that configuration has been done successfully without any issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cmake version used is 3.21.2.&lt;/P&gt;
&lt;P&gt;Attached the screenshot for your reference.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShanmukhS_Intel_0-1642507458015.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/25742iB8C19B02F4C4A9C6/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="ShanmukhS_Intel_0-1642507458015.png" alt="ShanmukhS_Intel_0-1642507458015.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Shanmukh.SS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 12:04:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneMKL-CMakelists-txt-is-incompatible-with-shipped-CMake-version/m-p/1352205#M32591</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2022-01-18T12:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: OneMKL CMakelists.txt is incompatible with shipped CMake version in Docker image</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneMKL-CMakelists-txt-is-incompatible-with-shipped-CMake-version/m-p/1352212#M32592</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thanks for the config link, I somehow missed it.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/170714"&gt;@ShanmukhS_Intel&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Could you please elaborate what do you mean by old cmake and new cmake as mentioned here.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Here's what I mean. There are two cmakes.&lt;/P&gt;
&lt;LI-CODE lang="bash"&gt;root@4ecc5c5ba9d9:/# /usr/bin/cmake --version
cmake version 3.10.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).
root@4ecc5c5ba9d9:/# /usr/local/bin/cmake --version
cmake version 3.22.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).
root@4ecc5c5ba9d9:/# &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;In bash, the default CMake picked up is the new one (/usr/local/bin/cmake), so everything works fine. However, CLion automatically picks the old CMake's path (/usr/bin/cmake), and that was the reason for my problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The question now is, why are there two CMakes installed in the first place?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 12:24:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneMKL-CMakelists-txt-is-incompatible-with-shipped-CMake-version/m-p/1352212#M32592</guid>
      <dc:creator>sudoLife</dc:creator>
      <dc:date>2022-01-18T12:24:29Z</dc:date>
    </item>
    <item>
      <title>Re:OneMKL CMakelists.txt is incompatible with shipped CMake version in Docker image</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneMKL-CMakelists-txt-is-incompatible-with-shipped-CMake-version/m-p/1352213#M32593</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for accepting our solution. If you need any additional information, please submit a new question as this thread will no longer be monitored. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shanmukh.SS&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jan 2022 12:26:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneMKL-CMakelists-txt-is-incompatible-with-shipped-CMake-version/m-p/1352213#M32593</guid>
      <dc:creator>ShanmukhS_Intel</dc:creator>
      <dc:date>2022-01-18T12:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: OneMKL CMakelists.txt is incompatible with shipped CMake version in Docker image</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneMKL-CMakelists-txt-is-incompatible-with-shipped-CMake-version/m-p/1352272#M32597</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/211387"&gt;@sudoLife&lt;/a&gt; said, ".. there is an old cmake in /usr/bin/cmake and a new one in /usr/local/bin/cmake, so all I had to do was use the new path. Why are there two of them?"&lt;/P&gt;
&lt;P&gt;Because you, or an administrator, or the installer of some other package, installed a newer version of cmake in the /usr/local tree. I think that there is a reason why add-ons should go into /usr/local rather than overwrite the original cmake in /usr/bin. Other users of the system, or even the Linux OS itself, may become unstable if experimental versions are allowed to replace the versions that the system came with.&lt;/P&gt;
&lt;P&gt;I did this to myself once many years ago. A package that I was installing complained that the libc.so.6 that I had was too old for the new package to work. I obtained a newer version of libc.so.6, and replaced the existing version with this. The result of this careless action was that I had to reinstall Linux, because even commands such as &lt;STRONG&gt;ls&lt;/STRONG&gt; stopped to work, as most of the system utilities depend on libc.so.6.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 17:47:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneMKL-CMakelists-txt-is-incompatible-with-shipped-CMake-version/m-p/1352272#M32597</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2022-01-18T17:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: OneMKL CMakelists.txt is incompatible with shipped CMake version in Docker image</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneMKL-CMakelists-txt-is-incompatible-with-shipped-CMake-version/m-p/1352299#M32600</link>
      <description>&lt;P&gt;Yep you're right, intel installation must have depended on the new CMake, and so it was installed.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 16:41:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneMKL-CMakelists-txt-is-incompatible-with-shipped-CMake-version/m-p/1352299#M32600</guid>
      <dc:creator>sudoLife</dc:creator>
      <dc:date>2022-01-18T16:41:27Z</dc:date>
    </item>
  </channel>
</rss>

