<?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 pardiso compilation c language HPC Linux OneApi 2021 in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-compilation-c-language-HPC-Linux-OneApi-2021/m-p/1508759#M34880</link>
    <description>&lt;P&gt;Good afternoon,&lt;/P&gt;&lt;P&gt;I would like to use the pardiso unsymmetric procedure in C.&lt;/P&gt;&lt;P&gt;I am using a HPC Linux 64 bits Redhat 7.9, with OneAPI 2021 installed.&lt;/P&gt;&lt;P&gt;Could someone please provide a simple C example of pardiso unsym .c algorithm, as well as the compilation instructions (setting the environment, compilation instruction, etc).&lt;/P&gt;&lt;P&gt;That would be greatly appreciated!&lt;/P&gt;&lt;P&gt;thanks in advance for your help,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jul 2023 14:27:02 GMT</pubDate>
    <dc:creator>AlexandreL</dc:creator>
    <dc:date>2023-07-27T14:27:02Z</dc:date>
    <item>
      <title>pardiso compilation c language HPC Linux OneApi 2021</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-compilation-c-language-HPC-Linux-OneApi-2021/m-p/1508759#M34880</link>
      <description>&lt;P&gt;Good afternoon,&lt;/P&gt;&lt;P&gt;I would like to use the pardiso unsymmetric procedure in C.&lt;/P&gt;&lt;P&gt;I am using a HPC Linux 64 bits Redhat 7.9, with OneAPI 2021 installed.&lt;/P&gt;&lt;P&gt;Could someone please provide a simple C example of pardiso unsym .c algorithm, as well as the compilation instructions (setting the environment, compilation instruction, etc).&lt;/P&gt;&lt;P&gt;That would be greatly appreciated!&lt;/P&gt;&lt;P&gt;thanks in advance for your help,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 14:27:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-compilation-c-language-HPC-Linux-OneApi-2021/m-p/1508759#M34880</guid>
      <dc:creator>AlexandreL</dc:creator>
      <dc:date>2023-07-27T14:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: pardiso compilation c language HPC Linux OneApi 2021</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-compilation-c-language-HPC-Linux-OneApi-2021/m-p/1509107#M34881</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting in Intel Communities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;Could someone please provide a simple C example of pardiso unsym .c algorithm&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, as you are using Intel MKL on a Linux machine, you can find all the MKL sample codes in this /opt/intel/oneapi/mkl/latest/examples directory path you can untar and keep these examples in another folder( as Intel oneAPI path is a readable folder)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you want to run the pardiso unsym.c example, you can go to the path where you have untared the file and go to &lt;STRONG&gt;c/sparse_directsolvers/source&lt;/STRONG&gt; then you can find the example pardiso_unsym.c&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;as well as the compilation instructions (setting the environment, compilation instruction, etc).&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;At first, we need to initialize the Intel oneAPI environment for Intel MKL and Intel Compilers(C, C++, Fortran)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;source /opt/intel/oneapi/setvars.sh &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, for compiling you can use the Intel&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl-link-line-advisor.html#gs.3p0adx" target="_blank" rel="noopener"&gt;link line advisor&lt;/A&gt;&amp;nbsp;for proper linking of your code. And also, please find this documentation for other linking options.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/docs/onemkl/developer-guide-linux/2023-1/linking-your-application-with-onemkl.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/docs/onemkl/developer-guide-linux/2023-1/linking-your-application-with-onemkl.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Compiling : icpx -DMKL_ILP64 -I"${MKLROOT}/include" pardiso_unsym.c -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_ilp64.a ${MKLROOT}/lib/intel64/libmkl_sequential.a ${MKLROOT}/lib/intel64/libmkl_core.a -Wl,--en d-group -lpthread -lm -ldl
Running : ./a.out&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please find the below screenshot where we tried for pardiso_unsym.c code,&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VarshaS_Intel_0-1690549520633.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/44109i68967731DE244FB7/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="VarshaS_Intel_0-1690549520633.png" alt="VarshaS_Intel_0-1690549520633.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details, regarding getting started for Intel MKL, please find the below links:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/docs/onemkl/get-started-guide/2023-0/overview.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/docs/onemkl/get-started-guide/2023-0/overview.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/docs/onemkl/developer-guide-linux/2023-1/overview.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/docs/onemkl/developer-guide-linux/2023-1/overview.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please let us know if you have any other queries?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;
&lt;P&gt;Varsha&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 13:07:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-compilation-c-language-HPC-Linux-OneApi-2021/m-p/1509107#M34881</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2023-07-28T13:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: pardiso compilation c language HPC Linux OneApi 2021</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-compilation-c-language-HPC-Linux-OneApi-2021/m-p/1509144#M34882</link>
      <description>&lt;P&gt;Dear Varsha,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your support!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since my message posted yesterday, I managed to successfully compile using the "mkl link tool" to give me the compilation options :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;icc pardiso_unsym_c.c -DMKL_ILP64 -I"${MKLROOT}/include" -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_ilp64.a ${MKLROOT}/lib/intel64/libmkl_intel_thread.a ${MKLROOT}/lib/intel64/libmkl_core.a ${MKLROOT}/lib/intel64/libmkl_blacs_intelmpi_ilp64.a -Wl,--end-group -liomp5 -lpthread -lm -ldl -o pardiso_unsym_c&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, during execution, I add an error message with libiomp5.so!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;I was stuck again, and your reply came handy:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;I first initialised the environment variables as you recommended :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;source /opt/cluster/tools/intel/2021.4/setvars.sh&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;then I tried to compile using your command :&lt;/P&gt;&lt;PRE&gt;icpx -DMKL_ILP64 -I"${MKLROOT}/include" pardiso_unsym.c -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_ilp64.a ${MKLROOT}/lib/intel64/libmkl_sequential.a ${MKLROOT}/lib/intel64/libmkl_core.a -Wl,--en d-group -lpthread -lm -ldl&lt;/PRE&gt;&lt;P&gt;Unfortunately it gave an error regarding d-group...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I tried to recompile the code using my command above (&lt;EM&gt;icc ...&lt;/EM&gt;) after initialising the environment variables using your command, and it successfully compiled... and ran!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;In conclusion, I found out that:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;my compilation command is OK&lt;/P&gt;&lt;P&gt;the environment variables need to be set before execution, using&lt;EM&gt; source /opt/cluster/tools/intel/2021.4/setvars.sh&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks to you, I also found out that I add the tgz examples installed in the directories, which I did not know (I did not install OneApi myself). I had recovered a pardiso_unsym.c version from the internet which might be a little older that the one officially provided with OneApi 2021. I will then use the OneAPI 2021 version from now on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for the support, that helped me get the algorithm working and get the recent version!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 15:04:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-compilation-c-language-HPC-Linux-OneApi-2021/m-p/1509144#M34882</guid>
      <dc:creator>AlexandreL</dc:creator>
      <dc:date>2023-07-28T15:04:38Z</dc:date>
    </item>
    <item>
      <title>Re:pardiso compilation c language HPC Linux OneApi 2021</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-compilation-c-language-HPC-Linux-OneApi-2021/m-p/1509708#M34890</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt; and it successfully compiled... and ran!&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt;Thanks again for the support, that helped me get the algorithm working and get the recent version!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It’s great to know that the issue has been resolved, in case you run into any other issues please feel free to create a new thread.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Have a Good Day!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Varsha&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Jul 2023 16:59:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/pardiso-compilation-c-language-HPC-Linux-OneApi-2021/m-p/1509708#M34890</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2023-07-31T16:59:08Z</dc:date>
    </item>
  </channel>
</rss>

