<?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:how to compile and link a oneapi hello-world.cpp in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-compile-and-link-a-oneapi-hello-world-cpp/m-p/1406187#M33480</link>
    <description>&lt;P&gt;Hi Leondro,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for accepting our 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 Nice 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>Fri, 05 Aug 2022 02:51:14 GMT</pubDate>
    <dc:creator>VidyalathaB_Intel</dc:creator>
    <dc:date>2022-08-05T02:51:14Z</dc:date>
    <item>
      <title>how to compile and link a oneapi hello-world.cpp</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-compile-and-link-a-oneapi-hello-world-cpp/m-p/1403942#M33450</link>
      <description>&lt;P&gt;Hello fellow developers and INTEL experts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm having a lot of trouble to try and use INTEL onapi implementation of BLAS/PBLAS/BLACS/LAPACK/SCALAPACK and message passing routines.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First I installed oneapi base software for linux. After a lot of frustraded attempts to compile some code with icc, I found out that the intel classic compiler is not provided with the base package.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tried to compile an example provided by the oneapi-cli and, as well, a lot of trouble to link and compile. No include and libs directives in the makefile.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I discovered that the environment of oneapi-base provided trhough docker images functions properly. I was able to build and run an oneapi-cli example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I found out that one could use the package config tool to obtain cflags and libs option to compile programs. (? I dont understand why the cflags and lib directives are not present in the example that was pointed out as the primary test of oneapi package)&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/get-started-with-intel-oneapi-hpc-linux/top/run-a-sample-project-using-the-command-line.html#run-a-sample-project-using-the-command-line" target="_blank"&gt;https://www.intel.com/content/www/us/en/develop/documentation/get-started-with-intel-oneapi-hpc-linux/top/run-a-sample-project-using-the-command-line.html#run-a-sample-project-using-the-command-line&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All I need for now is to find a way to code and build a C application that could use the parallel capabilities of the scalapack routines to solve generalized nonsymmetric eigenproblems.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thing that will help me:&lt;/P&gt;
&lt;P&gt;-A howto about building oneapi-cli examples (the make file provided is not working)&lt;/P&gt;
&lt;P&gt;-Some additional configuration steps to setup a working oneapi environment (I already use the setvars.sh script and source it once every oneapi session!)&lt;/P&gt;
&lt;P&gt;-An example code of scalapack routine usage with compile, link and running directions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for any help or encouraging words! (right now oneapi seems a great tool but I'm scared of it)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS. I'm also trying to use INTEL's devcloud infrastrcture to follow some learning material. But so far I'm not able to authenticate myself in the devcloud. For that I open another question in the support.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2022 18:41:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-compile-and-link-a-oneapi-hello-world-cpp/m-p/1403942#M33450</guid>
      <dc:creator>lambda</dc:creator>
      <dc:date>2022-07-27T18:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to compile and link a oneapi hello-world.cpp</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-compile-and-link-a-oneapi-hello-world-cpp/m-p/1404179#M33451</link>
      <description>&lt;P&gt;Hi Leandro,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;I found out that the intel classic compiler is not provided with the base package.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, you are right! The Intel classic compilers and MPI library come with oneAPI HPC Toolkit package. Since you already installed Base Toolkit we suggest you install oneAPI HPC toolkit also.&lt;/P&gt;
&lt;P&gt;Please find the link below for downloading oneAPI HPC Toolkit&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/developer/tools/oneapi/hpc-toolkit-download.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/developer/tools/oneapi/hpc-toolkit-download.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;Tried to compile an example provided by the oneapi-cli and, as well, a lot of trouble to link and compile...A howto about building oneapi-cli examples&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please let us know what are the issues that you are facing when building sample programs (also which sample code you tried) from oneapi-cli so that it would help us better and assist you accordingly?&lt;/P&gt;
&lt;P&gt;Here are the screenshots for the couple of examples that I have tested from oneapi-cli&amp;nbsp;&lt;/P&gt;
&lt;P&gt;----Vector-add&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VidyalathaB_Intel_0-1659009691374.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/32084iA452548588733F8F/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="VidyalathaB_Intel_0-1659009691374.png" alt="VidyalathaB_Intel_0-1659009691374.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;----matrix multiplication using oneMKL GEMM operation&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VidyalathaB_Intel_1-1659009710634.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/32085iFC4DD7B4902872F8/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="VidyalathaB_Intel_1-1659009710634.png" alt="VidyalathaB_Intel_1-1659009710634.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;Some additional configuration steps to setup a working oneapi environment (I already use the setvars.sh script and source it once every oneapi session!)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Running the setvars.sh script file would suffice to initialize the oneAPI environment.&lt;/P&gt;
&lt;P&gt;Please refer to the below link for more details&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/oneapi-development-environment-setup/use-the-setvars-script-with-linux-or-macos.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/oneapi-development-environment-setup/use-the-setvars-script-with-linux-or-macos.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;An example code of scalapack routine usage with compile, link and running directions&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To use oneMKL in your application you can always take help from link line advisor a tool which will help you to get the required libraries that are recommended for a particular use case&lt;/P&gt;
&lt;P&gt;Please refer to the below link of the link line advisor&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl-link-line-advisor.html?wapkw=link%20line%20advisor#gs.7n5gax" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl-link-line-advisor.html?wapkw=link%20line%20advisor#gs.7n5gax&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, you can refer to the mkl developer guide for Linux which has more details about linking and usage of oneMKL&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/onemkl-linux-developer-guide/top/linking-your-application-with-onemkl.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/develop/documentation/onemkl-linux-developer-guide/top/linking-your-application-with-onemkl.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a thread with a similar discussion regarding the issue that you are looking for (compiling, linking &amp;amp; running of a scalapack code) I hope it will give you a basic idea of what you are looking for&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-OneAPI-MKL-Scalapack-call-gives-segmentation-fault/m-p/1377292#M33045" target="_blank" rel="noopener"&gt;https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-OneAPI-MKL-Scalapack-call-gives-segmentation-fault/m-p/1377292#M33045&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps and please get back to us if you still have any issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vidya.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 12:02:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-compile-and-link-a-oneapi-hello-world-cpp/m-p/1404179#M33451</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-07-28T12:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to compile and link a oneapi hello-world.cpp</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-compile-and-link-a-oneapi-hello-world-cpp/m-p/1405976#M33472</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/247941"&gt;@lambda&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Reminder:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As we haven't heard back from you, could you please provide us with an update regarding the issue? Please do let us know if you need any other information apart from the one that we have provided in the previous post and you can get back to us if you face any issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Vidya.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 11:54:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-compile-and-link-a-oneapi-hello-world-cpp/m-p/1405976#M33472</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-08-04T11:54:36Z</dc:date>
    </item>
    <item>
      <title>Re:how to compile and link a oneapi hello-world.cpp</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-compile-and-link-a-oneapi-hello-world-cpp/m-p/1406187#M33480</link>
      <description>&lt;P&gt;Hi Leondro,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for accepting our 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 Nice 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>Fri, 05 Aug 2022 02:51:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-compile-and-link-a-oneapi-hello-world-cpp/m-p/1406187#M33480</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-08-05T02:51:14Z</dc:date>
    </item>
  </channel>
</rss>

