<?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: CMake Config for oneMKL example cannot find MKL_C in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CMake-Config-for-oneMKL-example-cannot-find-MKL-C/m-p/1412363#M33607</link>
    <description>&lt;P class="lia-align-left"&gt;Hi Peter,&lt;/P&gt;
&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-left"&gt;Thanks for reaching out to us.&lt;/P&gt;
&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-left"&gt;&lt;EM&gt;&amp;gt;&amp;gt;...until it fails to find MKL_C (.lib?)&lt;/EM&gt;&lt;/P&gt;
&lt;P class="lia-align-left"&gt;The issue is reproducible with the CMakeLists.txt provided in the documentation&lt;/P&gt;
&lt;P class="lia-align-left"&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 class="lia-align-left"&gt;Thanks for letting us know. we will check on that and will let you know about the same.&lt;/P&gt;
&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-left"&gt;Here's how we can resolve the error that we are getting during cmake step.&lt;/P&gt;
&lt;P class="lia-align-left"&gt;So while checking for the target MKL::MKL_C (which we see in error)in MKLConfig.cmake file,&amp;nbsp;I didn't find it and it is mentioned as follows from line 88 to 91&lt;/P&gt;
&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;MKL::MKL
# Link line for C and Fortran API
# MKL::MKL_DPCPP
# Link line for DPC++ API&lt;/LI-CODE&gt;
&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;which tells that MKL::MKL would suffice to work with both C and Fortran API's&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;and after replacing&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;&amp;gt;&amp;gt; MKL::MKL_C&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;with&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;&amp;lt;&amp;lt; MKL::MKL&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;in your CMakeLists.txt it worked without generating any such errors.&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;Also we suggest you to refer to the CMakeLists.txt file which is present under this location "C:\Program Files (x86)\Intel\oneAPI\mkl\2022.1.0\examples\examples_core_c.zip\c" where you can see only MKL::MKL used as target.&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;Here is the screenshot for your reference&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VidyalathaB_Intel_0-1662104874087.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/33088i4AE41D82F96F5B72/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="VidyalathaB_Intel_0-1662104874087.png" alt="VidyalathaB_Intel_0-1662104874087.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;Please do let us know if you still face any issues.&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;Regards,&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;Vidya.&lt;/P&gt;
&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2022 08:10:09 GMT</pubDate>
    <dc:creator>VidyalathaB_Intel</dc:creator>
    <dc:date>2022-09-02T08:10:09Z</dc:date>
    <item>
      <title>CMake Config for oneMKL example cannot find MKL_C</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CMake-Config-for-oneMKL-example-cannot-find-MKL-C/m-p/1412203#M33603</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to use&amp;nbsp; MKLConfig.cmake (wind64) via example cmakelist.txt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&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"&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;using:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cmake -G"Visual Studio 17 2022" -A x64&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It a happily finds and uses&amp;nbsp;MKLConfig.cmake, until it fails to find MKL_C (.lib?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;etc etc&lt;/P&gt;
&lt;P&gt;-- Found MKL: C:/Program Files (x86)/Intel/oneAPI/compiler/latest/windows/compiler/lib/intel64/libiomp5md.lib&lt;/P&gt;
&lt;P&gt;-- Configuring done&lt;/P&gt;
&lt;P&gt;CMake Error at CMakeLists.txt:8 (target_compile_options):&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Error evaluating generator expression:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $&amp;lt;TARGET_PROPERTY:MKL::MKL_C,INTERFACE_COMPILE_OPTIONS&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Target "MKL::MKL_C" not found.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(When working, I will add Fortran as well)&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 15:42:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CMake-Config-for-oneMKL-example-cannot-find-MKL-C/m-p/1412203#M33603</guid>
      <dc:creator>Peter0000</dc:creator>
      <dc:date>2022-09-01T15:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: CMake Config for oneMKL example cannot find MKL_C</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CMake-Config-for-oneMKL-example-cannot-find-MKL-C/m-p/1412363#M33607</link>
      <description>&lt;P class="lia-align-left"&gt;Hi Peter,&lt;/P&gt;
&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-left"&gt;Thanks for reaching out to us.&lt;/P&gt;
&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-left"&gt;&lt;EM&gt;&amp;gt;&amp;gt;...until it fails to find MKL_C (.lib?)&lt;/EM&gt;&lt;/P&gt;
&lt;P class="lia-align-left"&gt;The issue is reproducible with the CMakeLists.txt provided in the documentation&lt;/P&gt;
&lt;P class="lia-align-left"&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 class="lia-align-left"&gt;Thanks for letting us know. we will check on that and will let you know about the same.&lt;/P&gt;
&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-left"&gt;Here's how we can resolve the error that we are getting during cmake step.&lt;/P&gt;
&lt;P class="lia-align-left"&gt;So while checking for the target MKL::MKL_C (which we see in error)in MKLConfig.cmake file,&amp;nbsp;I didn't find it and it is mentioned as follows from line 88 to 91&lt;/P&gt;
&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;MKL::MKL
# Link line for C and Fortran API
# MKL::MKL_DPCPP
# Link line for DPC++ API&lt;/LI-CODE&gt;
&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;which tells that MKL::MKL would suffice to work with both C and Fortran API's&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;and after replacing&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;&amp;gt;&amp;gt; MKL::MKL_C&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;with&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;&amp;lt;&amp;lt; MKL::MKL&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;in your CMakeLists.txt it worked without generating any such errors.&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;Also we suggest you to refer to the CMakeLists.txt file which is present under this location "C:\Program Files (x86)\Intel\oneAPI\mkl\2022.1.0\examples\examples_core_c.zip\c" where you can see only MKL::MKL used as target.&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;Here is the screenshot for your reference&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VidyalathaB_Intel_0-1662104874087.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/33088i4AE41D82F96F5B72/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="VidyalathaB_Intel_0-1662104874087.png" alt="VidyalathaB_Intel_0-1662104874087.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;Please do let us know if you still face any issues.&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;Regards,&lt;/P&gt;
&lt;P class="lia-align-justify lia-align-left"&gt;Vidya.&lt;/P&gt;
&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 08:10:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CMake-Config-for-oneMKL-example-cannot-find-MKL-C/m-p/1412363#M33607</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-09-02T08:10:09Z</dc:date>
    </item>
    <item>
      <title>Re:CMake Config for oneMKL example cannot find MKL_C</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CMake-Config-for-oneMKL-example-cannot-find-MKL-C/m-p/1412557#M33611</link>
      <description>&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for accepting the solution.&lt;/P&gt;&lt;P&gt;Please post a new question if you need any additional assistance from Intel as this thread will no longer be monitored.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Have a Great Day!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidya.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 03 Sep 2022 05:10:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/CMake-Config-for-oneMKL-example-cannot-find-MKL-C/m-p/1412557#M33611</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-09-03T05:10:52Z</dc:date>
    </item>
  </channel>
</rss>

