<?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 Using Thread profiler with MPI/pThread on Linux in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-Thread-profiler-with-MPI-pThread-on-Linux/m-p/864310#M2616</link>
    <description>Perhaps if you would establish a goal for your use of tprofile_cl, you could get some idea of how to move in that direction. Supposing that you wished to perform thread profiling of one or more MPI ranks of an MPI FUNNELED application, you might link it against the thread profiling library, and arrange to run each rank in a separate directory, so that you collect the threadprofiler.thr for each rank. Then you could examine the result of profiling each rank at leisure, using tprofile_cl or alternative.&lt;BR /&gt;Running thread profiler on your script doesn't appear to make a lot of sense, aside from the fact that tprofile_cl says it doesn't make sense; do you somehow engage pthreads in the script, rather than in your MPI application?&lt;BR /&gt;</description>
    <pubDate>Wed, 24 Mar 2010 05:22:25 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2010-03-24T05:22:25Z</dc:date>
    <item>
      <title>Using Thread profiler with MPI/pThread on Linux</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-Thread-profiler-with-MPI-pThread-on-Linux/m-p/864309#M2615</link>
      <description>&lt;BR /&gt;Hi there, &lt;BR /&gt;&lt;BR /&gt;I built an application involving both pThread and MPI and I would like to know if it is possible to use Thread profiler to analyse this application (Obviously, I'm running tprofiler on a single computer, part of the cluster, thus I'm only looking at the pthread part).&lt;BR /&gt;&lt;BR /&gt;The issue that I have come up with is that the command tprofile_cl (I'm running the collector only, the GUI is on a window station) don't accept mpirun... as an application launcher. Thiswas to be expected since we don't want to acquire data about MPI. &lt;BR /&gt;&lt;BR /&gt;Second attempt: using a launching script and the tprofiler_cl option (-x) to specify the application to be acquired. Unfortunately I keep on receiving the following message.&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;-sh-3.2$ tprofile_cl ./script -x hunt.exe&lt;/P&gt;
&lt;P&gt;Building project&lt;/P&gt;
&lt;P&gt;script: (E) Not a program module.&lt;BR /&gt;&lt;BR /&gt;It seems that my script (only a file with the command line) is not well accepted by tprofile_cl, although it works well when used alone.&lt;BR /&gt;&lt;BR /&gt;Did anybody tried acquiring with an application using MPI, used a launching script while callingtprofiler_cl or used succesfully the (-x) option, any of these info could be of interest.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Fred&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2010 15:26:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-Thread-profiler-with-MPI-pThread-on-Linux/m-p/864309#M2615</guid>
      <dc:creator>atom2626</dc:creator>
      <dc:date>2010-03-23T15:26:34Z</dc:date>
    </item>
    <item>
      <title>Using Thread profiler with MPI/pThread on Linux</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-Thread-profiler-with-MPI-pThread-on-Linux/m-p/864310#M2616</link>
      <description>Perhaps if you would establish a goal for your use of tprofile_cl, you could get some idea of how to move in that direction. Supposing that you wished to perform thread profiling of one or more MPI ranks of an MPI FUNNELED application, you might link it against the thread profiling library, and arrange to run each rank in a separate directory, so that you collect the threadprofiler.thr for each rank. Then you could examine the result of profiling each rank at leisure, using tprofile_cl or alternative.&lt;BR /&gt;Running thread profiler on your script doesn't appear to make a lot of sense, aside from the fact that tprofile_cl says it doesn't make sense; do you somehow engage pthreads in the script, rather than in your MPI application?&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Mar 2010 05:22:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-Thread-profiler-with-MPI-pThread-on-Linux/m-p/864310#M2616</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-03-24T05:22:25Z</dc:date>
    </item>
    <item>
      <title>Using Thread profiler with MPI/pThread on Linux</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-Thread-profiler-with-MPI-pThread-on-Linux/m-p/864311#M2617</link>
      <description>For tprofile_cl, the text after the application (or launcher script) is treated as an argument to the application, not an argument to tprofile_cl.&lt;BR /&gt;Try this:&lt;BR /&gt;tprofile_cl -x hunt.exe ./script</description>
      <pubDate>Thu, 25 Mar 2010 19:26:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-Thread-profiler-with-MPI-pThread-on-Linux/m-p/864311#M2617</guid>
      <dc:creator>Mark_D_Intel</dc:creator>
      <dc:date>2010-03-25T19:26:36Z</dc:date>
    </item>
    <item>
      <title>Using Thread profiler with MPI/pThread on Linux</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-Thread-profiler-with-MPI-pThread-on-Linux/m-p/864312#M2618</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hi guys,&lt;BR /&gt;&lt;BR /&gt;thanks for your responses, here what I'm using now:&lt;BR /&gt;&lt;BR /&gt;tprofile_cl -x ./hunt.exe ./script &lt;BR /&gt;&lt;BR /&gt;Thanks Mark, your answer made me look in this direction.&lt;BR /&gt;&lt;BR /&gt;Now everything seems to work well, but I have a segmentation fault that occurs. This fault doesn't appears when running the application without tprofiler_cl, but it is likely to be related to my application, because when I reduce the code to the minimum (main{MPI_Init();MPI_Finalize();return 0;}) it works.I'm going to look deeper into this and let you know if I find something helpful.&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;Fred&lt;/P&gt;
&lt;P&gt;/*discussion about the script*/&lt;/P&gt;
&lt;P&gt;In the script file I wrote:&lt;/P&gt;
&lt;P&gt;mpirun [mpi launch options] hunt.exe&lt;/P&gt;
&lt;P&gt;so it is only a "wrapper" to fool tprofile and make him consider it as a launching script since mpirun (is mpirun a launching script or an application?) is not accepted as an argument. This come from what is written in tprofile light help:&lt;/P&gt;
&lt;P&gt;Usage: tprofile_cl [&lt;OPTIONS&gt;] &lt;APPLICATION exe=""&gt; [&lt;PARAMETERS for="" application=""&gt;]&lt;/PARAMETERS&gt;&lt;/APPLICATION&gt;&lt;/OPTIONS&gt;&lt;/P&gt;
&lt;P&gt;Select an executable to analyze in one of the following ways.&lt;/P&gt;
&lt;P&gt;- Specify the executable on the command line&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;- Specify the application launcher (a script or other executable)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;on the command line and select the executable with&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;the --exe_of_interest (-x) option&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;(this should answer tim18's question on why I was using thread profiler on a script)&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2010 02:40:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Using-Thread-profiler-with-MPI-pThread-on-Linux/m-p/864312#M2618</guid>
      <dc:creator>atom2626</dc:creator>
      <dc:date>2010-03-26T02:40:29Z</dc:date>
    </item>
  </channel>
</rss>

