<?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:Use intel mkl when compiling with gfortran in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Use-intel-mkl-when-compiling-with-gfortran/m-p/1289883#M31501</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;To create a custom shared library/objects, follow the link below:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;On Linux:&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/onemkl-linux-developer-guide/top/linking-your-application-with-the-intel-oneapi-math-kernel-library/building-custom-shared-objects.html" rel="noopener noreferrer" target="_blank" style="font-family: Calibri, sans-serif; font-size: 11pt;"&gt;https://software.intel.com/content/www/us/en/develop/documentation/onemkl-linux-developer-guide/top/linking-your-application-with-the-intel-oneapi-math-kernel-library/building-custom-shared-objects.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Calibri, sans-serif; font-size: 11pt;"&gt;On Windows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/onemkl-windows-developer-guide/top/linking-your-application-with-the-intel-math-kernel-library/building-custom-dynamic-link-libraries.html" rel="noopener noreferrer" target="_blank" style="font-family: Calibri, sans-serif; font-size: 11pt;"&gt;https://software.intel.com/content/www/us/en/develop/documentation/onemkl-windows-developer-guide/top/linking-your-application-with-the-intel-math-kernel-library/building-custom-dynamic-link-libraries.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 15 Jun 2021 07:08:46 GMT</pubDate>
    <dc:creator>RahulV_intel</dc:creator>
    <dc:date>2021-06-15T07:08:46Z</dc:date>
    <item>
      <title>Use intel mkl when compiling with gfortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Use-intel-mkl-when-compiling-with-gfortran/m-p/1287673#M31460</link>
      <description>&lt;P&gt;I'm trying to make my gfortran compiled program to use intel mkl's pow implementation.&lt;/P&gt;
&lt;P&gt;I managed to use LD_PRELOAD trick as follows (same line, gnu.out is my executable):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;LD_PRELOAD=/software/x86_64/intel/parallel_studio_xe_2020_update4/compilers_and_libraries_2020.4.304/linux/compiler/lib/intel64_lin/libimf.so ./gnu.out&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;But I would like to use only pow implementation - this way, I can control which functions I change implementation to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So ideally, here is what I want:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;LD_PRELOAD=/path/to/part_of_libm.so ./gnu.out&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;when part_of_libm.so only includes the implementation of pow, and no other functions.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 10:22:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Use-intel-mkl-when-compiling-with-gfortran/m-p/1287673#M31460</guid>
      <dc:creator>nadavhalahmi</dc:creator>
      <dc:date>2021-06-07T10:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Use intel mkl when compiling with gfortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Use-intel-mkl-when-compiling-with-gfortran/m-p/1287689#M31461</link>
      <description>&lt;P&gt;the following example will create *.so for pow&lt;/P&gt;
&lt;P&gt;&lt;U&gt;extract object files from archive&lt;/U&gt;&lt;BR /&gt;mkdir temp&lt;BR /&gt;cd temp&lt;BR /&gt;ar x /path/to/parallel_studio_xe_.../compilers_and_libraries_.../linux/compiler/lib/intel64_lin/libimf.a&lt;BR /&gt;ar x /path/to/parallel_studio_xe_.../compilers_and_libraries_.../linux/compiler/lib/intel64_lin/libirc.a cpu_feature_disp.o&lt;/P&gt;
&lt;P&gt;&lt;U&gt;create shared object from object files&lt;/U&gt;&lt;BR /&gt;gcc -shared -o libpow.so pow*.o libm_feature_flag.o cpu_feature_disp.o logq_table.o scaleq_table.o const_q_table.o logl_table.o rcpq_table.o rcp_table.o expl_table.o expq_table.o&lt;/P&gt;
&lt;P&gt;&lt;U&gt;load needed library and run&lt;/U&gt;&lt;BR /&gt;LD_PRELOAD=/path/to/libpowf.so ./a.out&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 11:40:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Use-intel-mkl-when-compiling-with-gfortran/m-p/1287689#M31461</guid>
      <dc:creator>OrenMustaki</dc:creator>
      <dc:date>2021-06-07T11:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Use intel mkl when compiling with gfortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Use-intel-mkl-when-compiling-with-gfortran/m-p/1288065#M31474</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As suggested by &lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/150410"&gt;@OrenMustaki&lt;/a&gt;, you would need to extract the object files of the library file and create a library file out of those object files that are required.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know if your issue is resolved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Rahul&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 10:23:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Use-intel-mkl-when-compiling-with-gfortran/m-p/1288065#M31474</guid>
      <dc:creator>RahulV_intel</dc:creator>
      <dc:date>2021-06-14T10:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Use intel mkl when compiling with gfortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Use-intel-mkl-when-compiling-with-gfortran/m-p/1288108#M31475</link>
      <description>&lt;P&gt;It worked, but how can I tell which o files do I need? Is there an automated way to do so?&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/46"&gt;@RahulV_intel&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/150410"&gt;@OrenMustaki&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 14:33:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Use-intel-mkl-when-compiling-with-gfortran/m-p/1288108#M31475</guid>
      <dc:creator>nadavhalahmi</dc:creator>
      <dc:date>2021-06-08T14:33:34Z</dc:date>
    </item>
    <item>
      <title>Re:Use intel mkl when compiling with gfortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Use-intel-mkl-when-compiling-with-gfortran/m-p/1289883#M31501</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;To create a custom shared library/objects, follow the link below:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;On Linux:&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/onemkl-linux-developer-guide/top/linking-your-application-with-the-intel-oneapi-math-kernel-library/building-custom-shared-objects.html" rel="noopener noreferrer" target="_blank" style="font-family: Calibri, sans-serif; font-size: 11pt;"&gt;https://software.intel.com/content/www/us/en/develop/documentation/onemkl-linux-developer-guide/top/linking-your-application-with-the-intel-oneapi-math-kernel-library/building-custom-shared-objects.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Calibri, sans-serif; font-size: 11pt;"&gt;On Windows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/onemkl-windows-developer-guide/top/linking-your-application-with-the-intel-math-kernel-library/building-custom-dynamic-link-libraries.html" rel="noopener noreferrer" target="_blank" style="font-family: Calibri, sans-serif; font-size: 11pt;"&gt;https://software.intel.com/content/www/us/en/develop/documentation/onemkl-windows-developer-guide/top/linking-your-application-with-the-intel-math-kernel-library/building-custom-dynamic-link-libraries.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jun 2021 07:08:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Use-intel-mkl-when-compiling-with-gfortran/m-p/1289883#M31501</guid>
      <dc:creator>RahulV_intel</dc:creator>
      <dc:date>2021-06-15T07:08:46Z</dc:date>
    </item>
    <item>
      <title>Re:Use intel mkl when compiling with gfortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Use-intel-mkl-when-compiling-with-gfortran/m-p/1291539#M31553</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Any updates on this? Feel free to let us know if you face any issues.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Jun 2021 06:04:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Use-intel-mkl-when-compiling-with-gfortran/m-p/1291539#M31553</guid>
      <dc:creator>RahulV_intel</dc:creator>
      <dc:date>2021-06-21T06:04:44Z</dc:date>
    </item>
    <item>
      <title>Re:Use intel mkl when compiling with gfortran</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Use-intel-mkl-when-compiling-with-gfortran/m-p/1293766#M31601</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We are assuming that the solution provided helped and would no longer be monitoring this issue. Please raise a new thread if you have further issues.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Jun 2021 06:05:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Use-intel-mkl-when-compiling-with-gfortran/m-p/1293766#M31601</guid>
      <dc:creator>RahulV_intel</dc:creator>
      <dc:date>2021-06-28T06:05:55Z</dc:date>
    </item>
  </channel>
</rss>

