<?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: Setting MPI for MKL in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1401587#M33416</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I reproduced this problem with following MKL versions on Linux (CentOS 7.7.1908 (Core)):&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Intel(R) MKL version 2018.0.4 (build 20180808) on Intel(R) Advanced Vector Extensions 2 (Intel(R) AVX2) enabled processors, Intel(R) 64 architecture (1 thread)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Intel(R) MKL version 2022.0.0 (build 20211112) on Intel(R) Advanced Vector Extensions 2 (Intel(R) AVX2) enabled processors, Intel(R) 64 architecture (1 thread)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Compilation and link commands (for 2022.0.0 MKL):&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;icc -I../thirdparty/intel-mpi/v2021.2/linux64_x86_64/include -I../thirdparty/intel-mkl/v2022.0.x/linux64_x86_64/include -c main.cpp&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;icc main.o -L../thirdparty/intel-mpi/v2021.2/linux64_x86_64/lib -L../thirdparty/intel-mpi/v2021.2/linux64_x86_64/lib/release_mt -lmpi -ldl -lrt -lpthread -ldl -o test&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Output for execution with 2 processes:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Start 1 2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Start 0 2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ret_set_mpi = -3&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ret_set_mpi = -3&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Intel MKL FATAL ERROR: Cannot load symbol MKLMPI_Get_wrappers.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Intel MKL FATAL ERROR: Cannot load symbol MKLMPI_Get_wrappers.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jul 2022 16:14:56 GMT</pubDate>
    <dc:creator>Iakov</dc:creator>
    <dc:date>2022-07-19T16:14:56Z</dc:date>
    <item>
      <title>Setting MPI for MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1400823#M33402</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I'm trying to dynamically load MKL library during execution and fall into problem during parallel execution. When calling blacs_pinfo function I got this error:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Intel MKL FATAL ERROR: Cannot load symbol MKLMPI_Get_wrappers.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;I presume that problem is in the fact that MPI library is not set for MKL, which should be done by calling &lt;EM&gt;MKL_Set_mpi&lt;/EM&gt; function, but calling this function always ends up in getting error code -3 as a return value, which means according to manual that `The MPI library cannot be set at this point.`&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Moving &lt;EM&gt;MKL_Set_mpi&amp;nbsp;&lt;/EM&gt; call into different stages of execution didn't help, error code -3 is returned always.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anybody have experience with dynamic load of MKL?&lt;/P&gt;
&lt;P&gt;Thank you for any advises in advance,&lt;/P&gt;
&lt;P&gt;Iakov&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jul 2022 05:00:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1400823#M33402</guid>
      <dc:creator>Iakov</dc:creator>
      <dc:date>2022-07-16T05:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Setting MPI for MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1401148#M33408</link>
      <description>&lt;P&gt;Hi,&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;Could you please confirm if you are using the suggested options by &lt;A href="https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl-link-line-advisor.html#gs.6mqac7" target="_self"&gt;Link Line Advisor&lt;/A&gt; and still getting the error?&lt;/P&gt;
&lt;P&gt;If yes, please provide us the sample reproducer and steps you are using to compile and run the code so that we can check it from our end as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are not aware of the Link Line advisor, we suggest you make use of the tool which will help you with the recommended compile and linking options according to your use case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally, here is a thread with a similar issue that might help in resolving the issue.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-MPI-2020-4-Cluster-FFT-Fatal-Errors-when-creating/m-p/1340411" target="_blank" rel="noopener"&gt;https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Intel-MKL-MPI-2020-4-Cluster-FFT-Fatal-Errors-when-creating/m-p/1340411&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please get back to us with the above-requested details, if you have any issues in doing so.&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 10:14:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1401148#M33408</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-07-18T10:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Setting MPI for MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1401206#M33409</link>
      <description>&lt;P&gt;Hi Vidya,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your answer. But my problem is not about linking. It's about dynamic calls of MKL library functions. Here is the workflow:&lt;/P&gt;
&lt;P&gt;1. Compile code and link &lt;STRONG&gt;without&lt;/STRONG&gt; MKL.&lt;/P&gt;
&lt;P&gt;2. Execute binary.&lt;/P&gt;
&lt;P&gt;3. During execution:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;libHandle = dlopen("&lt;SPAN&gt;libmkl_blacs_intelmpi_lp64&lt;/SPAN&gt;.so",&amp;nbsp;RTLD_LAZY);&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;funcHandle = dlsym(libHandle, "blacs_pinfo");&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;funcHandle(procID, numProcs);&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;and this calls gives me an error&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;EM class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;Intel MKL FATAL ERROR: Cannot load symbol MKLMPI_Get_wrappers.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2022 14:24:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1401206#M33409</guid>
      <dc:creator>Iakov</dc:creator>
      <dc:date>2022-07-18T14:24:41Z</dc:date>
    </item>
    <item>
      <title>Re:Setting MPI for MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1401429#M33412</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please let us know which version of MKL you are using and your OS environment details?&lt;/P&gt;&lt;P&gt;If possible, could you please provide us with a sample reproducer code and the command you have used to compile and execute so that we will try to reproduce the same from our end?&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, 19 Jul 2022 05:23:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1401429#M33412</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-07-19T05:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Setting MPI for MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1401587#M33416</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I reproduced this problem with following MKL versions on Linux (CentOS 7.7.1908 (Core)):&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Intel(R) MKL version 2018.0.4 (build 20180808) on Intel(R) Advanced Vector Extensions 2 (Intel(R) AVX2) enabled processors, Intel(R) 64 architecture (1 thread)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Intel(R) MKL version 2022.0.0 (build 20211112) on Intel(R) Advanced Vector Extensions 2 (Intel(R) AVX2) enabled processors, Intel(R) 64 architecture (1 thread)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Compilation and link commands (for 2022.0.0 MKL):&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;icc -I../thirdparty/intel-mpi/v2021.2/linux64_x86_64/include -I../thirdparty/intel-mkl/v2022.0.x/linux64_x86_64/include -c main.cpp&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;icc main.o -L../thirdparty/intel-mpi/v2021.2/linux64_x86_64/lib -L../thirdparty/intel-mpi/v2021.2/linux64_x86_64/lib/release_mt -lmpi -ldl -lrt -lpthread -ldl -o test&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Output for execution with 2 processes:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Start 1 2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Start 0 2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ret_set_mpi = -3&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ret_set_mpi = -3&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Intel MKL FATAL ERROR: Cannot load symbol MKLMPI_Get_wrappers.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Intel MKL FATAL ERROR: Cannot load symbol MKLMPI_Get_wrappers.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 16:14:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1401587#M33416</guid>
      <dc:creator>Iakov</dc:creator>
      <dc:date>2022-07-19T16:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Setting MPI for MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1401801#M33417</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for sharing the code and steps to reproduce the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, the issue is reproducible.&lt;/P&gt;
&lt;P&gt;Regarding the runtime error that you are getting, I tried following the suggestions from the link line advisor (as I mentioned in my earlier post) and don't see those errors. Here is the screenshot.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VidyalathaB_Intel_0-1658297686894.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/31772i593F5FB22614A965/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="VidyalathaB_Intel_0-1658297686894.png" alt="VidyalathaB_Intel_0-1658297686894.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;linking command:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;icc main.o -L${MKLROOT}/lib/intel64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lmkl_blacs_intelmpi_lp64 -liomp5 -lpthread -lm -ldl -lmpi&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the return value of the function MKL_Set_mpi is still set to -3 as you mentioned in your first post. When searched regarding the same in the MKL manual, it is already mentioned like, the function returns an error with other configurations and maybe it is the reason we are getting that as -3.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/onemkl-developer-reference-c/top/support-functions/miscellaneous/mkl-set-mpi.html" target="_self"&gt;mkl_set_mpi&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;"&lt;EM&gt;Call this function to set the MPI implementation to be used by Intel® oneAPI Math Kernel Library on Windows* OS when dynamic Intel® oneAPI Math Kernel Library libraries are used. &lt;STRONG&gt;For all other configurations, the function returns an error&lt;/STRONG&gt; indicating that you cannot set the MPI implementation. You can specify your own prebuilt dynamic BLACS library for a custom MPI by setting vendor to MKL_BLACS_CUSTOM&lt;/EM&gt;"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try the suggestions from the Link Line advisor which helps in resolving the issue with runtime error and do let me know if you have any concerns.&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>Wed, 20 Jul 2022 06:15:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1401801#M33417</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-07-20T06:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Setting MPI for MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1401913#M33418</link>
      <description>&lt;P&gt;Hi Vidya,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately I cannot accept linking solution, because the main purpose is to build a binary without any Lapack/Blacs/ScaLapack symbols and during execution depending on some logic load proper library and MKL could be one of the possible libraries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did some more tests:&lt;/P&gt;
&lt;P&gt;1. On Windows everything is working out of the box without any additional calls/setting environment (I suspect that mpiexec for different MPI libraries set some environment and MKL makes a decision depending on this values). I checked for both IMPI and MSMPI.&lt;/P&gt;
&lt;P&gt;2. When I explicitly called &lt;EM&gt;MKL_Set_mpi&lt;/EM&gt; for Windows implementation I again got an error for both IMPI and MSMPI:&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Intel MKL FATAL ERROR: Error on loading function mkl_serv_set_mpi.&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;So the main question is still the same: How to make this logic working on Linux?&lt;/P&gt;
&lt;P&gt;The minor question is about not working function&amp;nbsp;&lt;EM&gt;MKL_Set_mpi&lt;/EM&gt; on Windows, but it's not important for me as long as for Windows everything is working without any additional steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS. Reproducible for windows attached. The same MKL version where tested as previously:&amp;nbsp;&lt;EM class="sub_section_element_selectors"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;2018.0.4 and 2022.0.0.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 14:05:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1401913#M33418</guid>
      <dc:creator>Iakov</dc:creator>
      <dc:date>2022-07-20T14:05:25Z</dc:date>
    </item>
    <item>
      <title>Re:Setting MPI for MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1403764#M33438</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We are working on your 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>Wed, 27 Jul 2022 07:35:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1403764#M33438</guid>
      <dc:creator>VidyalathaB_Intel</dc:creator>
      <dc:date>2022-07-27T07:35:26Z</dc:date>
    </item>
    <item>
      <title>Re:Setting MPI for MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1403956#M33445</link>
      <description>&lt;P&gt;Hi Lakov,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I will definitely discuss with the team and will get back to you with the next step.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Jul 2022 19:23:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1403956#M33445</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2022-07-27T19:23:24Z</dc:date>
    </item>
    <item>
      <title>Re:Setting MPI for MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1406171#M33478</link>
      <description>&lt;P&gt;Hi Lakov,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The mkl team is looking into this issue.&lt;/P&gt;&lt;P&gt;I will let you know once I receive any news.&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>Fri, 05 Aug 2022 00:56:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1406171#M33478</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2022-08-05T00:56:47Z</dc:date>
    </item>
    <item>
      <title>Re:Setting MPI for MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1406183#M33479</link>
      <description>&lt;P&gt;Hi Lakov,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;"&gt;oneMKL libraries cannot resolve internal dependencies on Linux if they were loaded with RTLD_LOCAL (default option for dlopen).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;"&gt;So, for the work-around, you will need to add the option RTLD-GLOBAL in the dlopen calls by replacing RTLD_LAZY with (RTLD_LAZY | RTLD_GLOBAL).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;"&gt;void* rt_lib_ptr = dlopen("libmkl_rt.so", RTLD_LAZY | RTLD_GLOBAL);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;"&gt;void* intel_lib_ptr = dlopen("libmkl_intel_lp64.so", RTLD_LAZY | RTLD_GLOBAL);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;"&gt;void* blacs_lib_ptr = dlopen("libmkl_blacs_intelmpi_lp64.so", RTLD_LAZY | RTLD_GLOBAL);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;"&gt;void* scalapack_lib_ptr = dlopen("libmkl_scalapack_lp64.so", RTLD_LAZY | RTLD_GLOBAL);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;"&gt;The fix will be in the the oneMKL 2023.0 release.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, &amp;quot;Fira Sans&amp;quot;, &amp;quot;Droid Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;"&gt;Khang&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Aug 2022 01:55:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1406183#M33479</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2022-08-05T01:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Setting MPI for MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1406931#M33513</link>
      <description>&lt;P&gt;Hi Khang,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for solution! I checked it for our project and everything now works fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sincerely,&lt;/P&gt;
&lt;P&gt;Iakov&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 22:53:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Setting-MPI-for-MKL/m-p/1406931#M33513</guid>
      <dc:creator>Iakov</dc:creator>
      <dc:date>2022-08-08T22:53:36Z</dc:date>
    </item>
  </channel>
</rss>

