<?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 how to use Cluster PARDISO and ScaLAPACK functions in python ctypes in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-use-Cluster-PARDISO-and-ScaLAPACK-functions-in-python/m-p/1064722#M21859</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;

&lt;P&gt;I know I can use python ctypes to load libmkl_rt.so use mkl. However, libmkl_rt .so does not have all the Cluster PARDISO and ScaLAPACK functions. If I want to use such functions, I needs to -lmkl_scalapack_lp64 -lmkl_intel_lp64 -lmkl_core -lmkl_intel_thread -lmkl_blacs_intelmpi_lp64 -liomp5. But ctypes just can load one shared library, I can not just load mkl_scalapack_lp64 or mkl_intel_lp64, because they all have undefined symbols. I want to ask how to use Cluster PARDISO and ScaLAPACK functions in python ctypes?&lt;/P&gt;</description>
    <pubDate>Mon, 05 Sep 2016 22:37:11 GMT</pubDate>
    <dc:creator>Chaowen_G_</dc:creator>
    <dc:date>2016-09-05T22:37:11Z</dc:date>
    <item>
      <title>how to use Cluster PARDISO and ScaLAPACK functions in python ctypes</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-use-Cluster-PARDISO-and-ScaLAPACK-functions-in-python/m-p/1064722#M21859</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;

&lt;P&gt;I know I can use python ctypes to load libmkl_rt.so use mkl. However, libmkl_rt .so does not have all the Cluster PARDISO and ScaLAPACK functions. If I want to use such functions, I needs to -lmkl_scalapack_lp64 -lmkl_intel_lp64 -lmkl_core -lmkl_intel_thread -lmkl_blacs_intelmpi_lp64 -liomp5. But ctypes just can load one shared library, I can not just load mkl_scalapack_lp64 or mkl_intel_lp64, because they all have undefined symbols. I want to ask how to use Cluster PARDISO and ScaLAPACK functions in python ctypes?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2016 22:37:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-use-Cluster-PARDISO-and-ScaLAPACK-functions-in-python/m-p/1064722#M21859</guid>
      <dc:creator>Chaowen_G_</dc:creator>
      <dc:date>2016-09-05T22:37:11Z</dc:date>
    </item>
    <item>
      <title>Hi Chaowen, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-use-Cluster-PARDISO-and-ScaLAPACK-functions-in-python/m-p/1064723#M21860</link>
      <description>&lt;P&gt;Hi Chaowen,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I guess there is more than one way to link third-party static library or dynamic library to python.&lt;/P&gt;

&lt;P&gt;But the first thing in my mind, as cluster Pardiso and scalapack is not in libmkl_rt.so, you can build one &amp;nbsp;Custom DLL, which link the function you wanted, then link the "custom.dll" instead of libmkl_rt.so.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;You can find the "custom dll " build tool in MKL install folder and some guide in the on-line articles.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/using-intel-mkl-in-your-python-programs" target="_blank"&gt;https://software.intel.com/en-us/articles/using-intel-mkl-in-your-python-programs&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 01:30:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/how-to-use-Cluster-PARDISO-and-ScaLAPACK-functions-in-python/m-p/1064723#M21860</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2016-09-06T01:30:23Z</dc:date>
    </item>
  </channel>
</rss>

