<?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 Profiling and tracing MPI with Python in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/Profiling-and-tracing-MPI-with-Python/m-p/1321391#M8820</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to profile / trace MPI python code using the Intel Python off the OneAPI conda environment 2021.3.0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've loaded the mpi, ITAC and VTune modules off OneAPI 2021.3.0 and I am using simply&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$ mpirun -trace -np 2 python &lt;EM&gt;PythonCode&lt;/EM&gt; ..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$ which python&lt;BR /&gt;~/software/x86_64/RHEL7/intel/oneapi/intelpython/latest/bin/python&lt;BR /&gt;&amp;nbsp;mtml@labtusc0s000003[pts/3]devito $ module load intel/oneapi/vtune/latest&lt;BR /&gt;Loading vtune version 2021.6.0&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I am getting&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$ mpirun -trace -np 2 python examples/FWI/example_iso.py 10 550 550 210 1&lt;BR /&gt;&lt;STRONG&gt;python: symbol lookup error: /data/saet/U/software/x86_64/RHEL7/intel/oneapi/itac/2021.3.0/slib/libVT.so: undefined symbol: PMPI_Initialized&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;python: symbol lookup error: /data/saet/U/software/x86_64/RHEL7/intel/oneapi/itac/2021.3.0/slib/libVT.so: undefined symbol: PMPI_Initialized&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can we use MPI profiling tools with Intel Python? The python code is MPI enabled using &lt;STRONG&gt;mpi4py&lt;/STRONG&gt;&amp;nbsp;built with Intel mpiicc/mpiicpc&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Oct 2021 16:25:46 GMT</pubDate>
    <dc:creator>drMikeT</dc:creator>
    <dc:date>2021-10-12T16:25:46Z</dc:date>
    <item>
      <title>Profiling and tracing MPI with Python</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Profiling-and-tracing-MPI-with-Python/m-p/1321391#M8820</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to profile / trace MPI python code using the Intel Python off the OneAPI conda environment 2021.3.0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've loaded the mpi, ITAC and VTune modules off OneAPI 2021.3.0 and I am using simply&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$ mpirun -trace -np 2 python &lt;EM&gt;PythonCode&lt;/EM&gt; ..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$ which python&lt;BR /&gt;~/software/x86_64/RHEL7/intel/oneapi/intelpython/latest/bin/python&lt;BR /&gt;&amp;nbsp;mtml@labtusc0s000003[pts/3]devito $ module load intel/oneapi/vtune/latest&lt;BR /&gt;Loading vtune version 2021.6.0&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I am getting&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$ mpirun -trace -np 2 python examples/FWI/example_iso.py 10 550 550 210 1&lt;BR /&gt;&lt;STRONG&gt;python: symbol lookup error: /data/saet/U/software/x86_64/RHEL7/intel/oneapi/itac/2021.3.0/slib/libVT.so: undefined symbol: PMPI_Initialized&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;python: symbol lookup error: /data/saet/U/software/x86_64/RHEL7/intel/oneapi/itac/2021.3.0/slib/libVT.so: undefined symbol: PMPI_Initialized&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can we use MPI profiling tools with Intel Python? The python code is MPI enabled using &lt;STRONG&gt;mpi4py&lt;/STRONG&gt;&amp;nbsp;built with Intel mpiicc/mpiicpc&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 16:25:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Profiling-and-tracing-MPI-with-Python/m-p/1321391#M8820</guid>
      <dc:creator>drMikeT</dc:creator>
      <dc:date>2021-10-12T16:25:46Z</dc:date>
    </item>
    <item>
      <title>Re:Profiling and tracing MPI with Python</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Profiling-and-tracing-MPI-with-Python/m-p/1321635#M8821</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;Can we use MPI profiling tools with Intel Python?&lt;/P&gt;&lt;P&gt;Yes, we can use MPI profiling tools with Intel Python.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please refer to this link for Tracing MPI Applications in Python:&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/content/www/us/en/develop/documentation/itc-user-and-reference-guide/top/user-guide/tracing-mpi-applications/tracing-conventional-mpi-applications.html" rel="noopener noreferrer" target="_blank"&gt;https://software.intel.com/content/www/us/en/develop/documentation/itc-user-and-reference-guide/top/user-guide/tracing-mpi-applications/tracing-conventional-mpi-applications.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please try this and let us know if you are still facing any issues.&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>Wed, 13 Oct 2021 09:20:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Profiling-and-tracing-MPI-with-Python/m-p/1321635#M8821</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2021-10-13T09:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Profiling and tracing MPI with Python</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Profiling-and-tracing-MPI-with-Python/m-p/1322299#M8830</link>
      <description>&lt;P&gt;Varsha, thanks for the suggestion!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So in general I can initiate the tracing of &lt;EM&gt;any&lt;/EM&gt; MPI code if I simply LD_PRELOAD&amp;nbsp;libVT.so and libmpi.so ?&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;regards&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 14:52:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Profiling-and-tracing-MPI-with-Python/m-p/1322299#M8830</guid>
      <dc:creator>drMikeT</dc:creator>
      <dc:date>2021-10-15T14:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Profiling and tracing MPI with Python</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Profiling-and-tracing-MPI-with-Python/m-p/1323460#M8854</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For creating a trace file for the MPI application where the code is written in Python you can use the below command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mpiexec.hydra -trace "libVT.so libmpi.so" -n 2 python &amp;lt;filename&amp;gt;.py&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We tried at our end using the above command and we are able to generate trace files, attaching a screenshot of it. Could you please let us know if you are facing any issues in creating the trace file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to do tracing without rebuilding please find the below command.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mpirun -trace -n 4 ./&amp;lt;filename&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the LD_PRELOAD environment variable to point to the appropriate profiling library by exporting it in the below manner.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;export LD_PRELOAD=libVT.so&lt;/LI-CODE&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;</description>
      <pubDate>Wed, 20 Oct 2021 13:07:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Profiling-and-tracing-MPI-with-Python/m-p/1323460#M8854</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2021-10-20T13:07:37Z</dc:date>
    </item>
    <item>
      <title>Re:Profiling and tracing MPI with Python</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Profiling-and-tracing-MPI-with-Python/m-p/1325447#M8876</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We haven't heard back from you. Could you please provide an update on your issue?&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>Thu, 28 Oct 2021 09:31:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Profiling-and-tracing-MPI-with-Python/m-p/1325447#M8876</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2021-10-28T09:31:46Z</dc:date>
    </item>
    <item>
      <title>Re:Profiling and tracing MPI with Python</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Profiling-and-tracing-MPI-with-Python/m-p/1327412#M8902</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;We have not heard back from you. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.&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>Fri, 05 Nov 2021 04:21:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Profiling-and-tracing-MPI-with-Python/m-p/1327412#M8902</guid>
      <dc:creator>VarshaS_Intel</dc:creator>
      <dc:date>2021-11-05T04:21:08Z</dc:date>
    </item>
  </channel>
</rss>

