<?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 make problem for mkl in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/make-problem-for-mkl/m-p/1325547#M32253</link>
    <description>&lt;P&gt;Hi, recently I build a project using mkl through make, my simple CMakeLists is like this,&lt;/P&gt;
&lt;PRE&gt;cmake_minimum_required(&lt;SPAN&gt;VERSION 3.14&lt;/SPAN&gt;)&lt;BR /&gt;project(&lt;SPAN&gt;ex5 Fortran&lt;/SPAN&gt;)&lt;BR /&gt;enable_language(&lt;SPAN&gt;Fortran&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;find_package(&lt;SPAN&gt;MKL REQUIRED&lt;/SPAN&gt;)&lt;BR /&gt;include_directories(&lt;SPAN&gt;${&lt;/SPAN&gt;&lt;SPAN&gt;MKL_INCLUDE&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;add_executable(&lt;SPAN&gt;ex5 main.f90&lt;/SPAN&gt;)&lt;BR /&gt;target_link_libraries(&lt;SPAN&gt;ex5 &lt;/SPAN&gt;&lt;SPAN&gt;${&lt;/SPAN&gt;&lt;SPAN&gt;MKL_LIBRARIES&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;#target_link_options(ex5 PUBLIC $&amp;lt;LINK_ONLY:MKL::MKL&amp;gt;)&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;If I use&amp;nbsp;target_link_libraries(&lt;SPAN&gt;ex5 &lt;/SPAN&gt;&lt;SPAN&gt;${&lt;/SPAN&gt;&lt;SPAN&gt;MKL_LIBRARIES&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;), I can successfully build the project, but not for&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;#target_link_options(ex5 PUBLIC $&amp;lt;LINK_ONLY:MKL::MKL&amp;gt;), which shows this error,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;ifort: error #10236: File not found: 'MKL::MKL'&lt;/P&gt;
&lt;P&gt;could you help solve this?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Oct 2021 16:21:50 GMT</pubDate>
    <dc:creator>MXY6</dc:creator>
    <dc:date>2021-10-28T16:21:50Z</dc:date>
    <item>
      <title>make problem for mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/make-problem-for-mkl/m-p/1325547#M32253</link>
      <description>&lt;P&gt;Hi, recently I build a project using mkl through make, my simple CMakeLists is like this,&lt;/P&gt;
&lt;PRE&gt;cmake_minimum_required(&lt;SPAN&gt;VERSION 3.14&lt;/SPAN&gt;)&lt;BR /&gt;project(&lt;SPAN&gt;ex5 Fortran&lt;/SPAN&gt;)&lt;BR /&gt;enable_language(&lt;SPAN&gt;Fortran&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;find_package(&lt;SPAN&gt;MKL REQUIRED&lt;/SPAN&gt;)&lt;BR /&gt;include_directories(&lt;SPAN&gt;${&lt;/SPAN&gt;&lt;SPAN&gt;MKL_INCLUDE&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;add_executable(&lt;SPAN&gt;ex5 main.f90&lt;/SPAN&gt;)&lt;BR /&gt;target_link_libraries(&lt;SPAN&gt;ex5 &lt;/SPAN&gt;&lt;SPAN&gt;${&lt;/SPAN&gt;&lt;SPAN&gt;MKL_LIBRARIES&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;#target_link_options(ex5 PUBLIC $&amp;lt;LINK_ONLY:MKL::MKL&amp;gt;)&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;If I use&amp;nbsp;target_link_libraries(&lt;SPAN&gt;ex5 &lt;/SPAN&gt;&lt;SPAN&gt;${&lt;/SPAN&gt;&lt;SPAN&gt;MKL_LIBRARIES&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;), I can successfully build the project, but not for&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;#target_link_options(ex5 PUBLIC $&amp;lt;LINK_ONLY:MKL::MKL&amp;gt;), which shows this error,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;ifort: error #10236: File not found: 'MKL::MKL'&lt;/P&gt;
&lt;P&gt;could you help solve this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 16:21:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/make-problem-for-mkl/m-p/1325547#M32253</guid>
      <dc:creator>MXY6</dc:creator>
      <dc:date>2021-10-28T16:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: make problem for mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/make-problem-for-mkl/m-p/1325845#M32254</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Thank you for posting in Intel Communities.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;We are investigating your issue at our end, Could you please share the mkl version for better understanding.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 14px;"&gt;Jaideep&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 12:49:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/make-problem-for-mkl/m-p/1325845#M32254</guid>
      <dc:creator>JaideepK_Intel</dc:creator>
      <dc:date>2021-10-29T12:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: make problem for mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/make-problem-for-mkl/m-p/1325856#M32255</link>
      <description>&lt;P&gt;Thanks for your response. My mkl version is 2021.4 for Mac os&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 13:22:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/make-problem-for-mkl/m-p/1325856#M32255</guid>
      <dc:creator>MXY6</dc:creator>
      <dc:date>2021-10-29T13:22:10Z</dc:date>
    </item>
    <item>
      <title>Re:make problem for mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/make-problem-for-mkl/m-p/1326517#M32260</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for providing the details.&lt;/P&gt;&lt;P&gt;The issue raised by you is reproducible from our end as well.&lt;/P&gt;&lt;P&gt;We are looking into this issue. We will get back to you soon.&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>Tue, 02 Nov 2021 05:29:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/make-problem-for-mkl/m-p/1326517#M32260</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2021-11-02T05:29:02Z</dc:date>
    </item>
    <item>
      <title>Re:make problem for mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/make-problem-for-mkl/m-p/1327025#M32265</link>
      <description>&lt;P&gt;Hi Meng,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have tested with oneMKL 2021.4 and confirmed the issue.  We have escalated this issue to the MKL team.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We will let you know when we have the solution for this problem.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Nov 2021 21:32:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/make-problem-for-mkl/m-p/1327025#M32265</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2021-11-03T21:32:08Z</dc:date>
    </item>
    <item>
      <title>Re:make problem for mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/make-problem-for-mkl/m-p/1362812#M32773</link>
      <description>&lt;P&gt;Hi Meng,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;cmake function target_link_options inserts the target as is,&amp;nbsp;target_link_libraries should be used in order to resolve MKL target correctly.&lt;/P&gt;&lt;P&gt;Please refer to CMakeLists.txt from oneMKL Fortran examples for the correct way how to include oneMKL to CMake project for classic Fortran API:&lt;/P&gt;&lt;P&gt;&amp;lt;install_path&amp;gt;/oneapi/mkl/2021.4.0/examples/examples_core_f.tgz/f/CMakeLists.txt:&amp;nbsp;&lt;/P&gt;&lt;P&gt; target_compile_options(${func} PUBLIC ${TEST_COPT} $&amp;lt;TARGET_PROPERTY:MKL::MKL,INTERFACE_COMPILE_OPTIONS&amp;gt;)&lt;/P&gt;&lt;P&gt; target_link_libraries(${func} PUBLIC ${TEST_LOPT} $&amp;lt;LINK_ONLY:MKL::MKL&amp;gt;)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This should fix it.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Feb 2022 03:51:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/make-problem-for-mkl/m-p/1362812#M32773</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2022-02-23T03:51:42Z</dc:date>
    </item>
  </channel>
</rss>

