<?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 Intel MPI with pthread in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-with-pthread/m-p/882314#M1936</link>
    <description>I am trying to run a program that uses Pthread with Intel MPI. The program was compiled and linked successfully. I ran it on a dual-socket machine with two quad-core processors, but no threads seemed to be created. Below is the command I used:&lt;BR /&gt;&lt;BR /&gt;mpirun -n 2 exectable &lt;BR /&gt;&lt;BR /&gt;The program is supposed to generate 8 threads in one of the 2 processes. Thanks.</description>
    <pubDate>Mon, 31 Aug 2009 20:30:43 GMT</pubDate>
    <dc:creator>jackyjngwn</dc:creator>
    <dc:date>2009-08-31T20:30:43Z</dc:date>
    <item>
      <title>Intel MPI with pthread</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-with-pthread/m-p/882314#M1936</link>
      <description>I am trying to run a program that uses Pthread with Intel MPI. The program was compiled and linked successfully. I ran it on a dual-socket machine with two quad-core processors, but no threads seemed to be created. Below is the command I used:&lt;BR /&gt;&lt;BR /&gt;mpirun -n 2 exectable &lt;BR /&gt;&lt;BR /&gt;The program is supposed to generate 8 threads in one of the 2 processes. Thanks.</description>
      <pubDate>Mon, 31 Aug 2009 20:30:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-with-pthread/m-p/882314#M1936</guid>
      <dc:creator>jackyjngwn</dc:creator>
      <dc:date>2009-08-31T20:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Intel MPI with pthread</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-with-pthread/m-p/882315#M1937</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/429854"&gt;jackyjngwn&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;I am trying to run a program that uses Pthread with Intel MPI. &lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Intel MPI is said to be more particular than certain other MPI implementations in requiring MPI_Init_thread to be used correctly for this case. The I_MPI_PIN_DOMAIN environment variable settings are provided (since MPI 3.2) to give some control over thread affinity.&lt;BR /&gt; Other than that, I doubt much can be said with the information you gave.&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Aug 2009 20:57:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-with-pthread/m-p/882315#M1937</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-08-31T20:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Intel MPI with pthread</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-with-pthread/m-p/882316#M1938</link>
      <description>&lt;P&gt;Hi, Jacky&lt;/P&gt;
&lt;P&gt;One other thing I would point out: when doing hybrid programming (threads + MPI), make sure you're using the thread-safe Intel MPI library. You can specify this for your Intel MPI Library compiler script (such as mpiicc, or mpiifort) by using the &lt;STRONG&gt;-mt_mpi&lt;/STRONG&gt; flag. Or you can manually link with &lt;STRONG&gt;libmpi_mt.so&lt;/STRONG&gt; in the &lt;CODE&gt;lib/lib64&lt;/CODE&gt; directory.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;~Gergana&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2009 21:11:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-with-pthread/m-p/882316#M1938</guid>
      <dc:creator>Gergana_S_Intel</dc:creator>
      <dc:date>2009-08-31T21:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Intel MPI with pthread</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-with-pthread/m-p/882317#M1939</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/367365"&gt;tim18&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Intel MPI is said to be more particular than certain other MPI implementations in requiring MPI_Init_thread to be used correctly for this case. The I_MPI_PIN_DOMAIN environment variable settings are provided (since MPI 3.2) to give some control over thread affinity.&lt;BR /&gt;Other than that, I doubt much can be said with the information you gave.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Thanks for the reply. Do you mean that I have to use "MPI_Init_thread" in my program instead of MPI_init, or I can specifiy the thread levels using the -mt_mpl option? &lt;BR /&gt;&lt;BR /&gt;Also, according to the reference manual, I_MPI_PIN_DOMAIN is for OpenMP only, isn't it? &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Aug 2009 21:13:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-with-pthread/m-p/882317#M1939</guid>
      <dc:creator>jackyjngwn</dc:creator>
      <dc:date>2009-08-31T21:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Intel MPI with pthread</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-with-pthread/m-p/882318#M1940</link>
      <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
According to my understanding, MPI_Init_thread is required, and the -mt_mpi would be needed for some of the supported threading models (perhaps not yours, except that it would be important anyway if you don't segregate threads from each other).&lt;BR /&gt;I_MPI_PIN_DOMAIN evidently has options to correspond with OpenMP, and may use the KMP_AFFINITY mechanism in that case to place the threads. I'm trying to refresh my installation so as to look at the current documentation on I_MPI_PIN_DOMAIN. If you care about placement of threads, you would want some mechanism such as this or taskset.&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Aug 2009 21:55:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-with-pthread/m-p/882318#M1940</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-08-31T21:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Intel MPI with pthread</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-with-pthread/m-p/882319#M1941</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/367365"&gt;tim18&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt; According to my understanding, MPI_Init_thread is required, and the -mt_mpi would be needed for some of the supported threading models (perhaps not yours, except that it would be important anyway if you don't segregate threads from each other).&lt;BR /&gt;I_MPI_PIN_DOMAIN evidently has options to correspond with OpenMP, and may use the KMP_AFFINITY mechanism in that case to place the threads. I'm trying to refresh my installation so as to look at the current documentation on I_MPI_PIN_DOMAIN. If you care about placement of threads, you would want some mechanism such as this or taskset.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
It appears that I_MPI_PIN_DOMAIN doesn't depend on OpenMP, but you may have to figure out the &lt;MASKLIST&gt; option if you are trying to reserve more than half the cores to 1 process.&lt;BR /&gt;&lt;/MASKLIST&gt;</description>
      <pubDate>Mon, 31 Aug 2009 22:30:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-with-pthread/m-p/882319#M1941</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-08-31T22:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Intel MPI with pthread</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-with-pthread/m-p/882320#M1942</link>
      <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
&lt;DIV style="margin:0px;"&gt;I've linked to mpi_mt using -lmpi_mt, and changed MPI_INIT to MPI_INIT_thread, but it seems that these tricks didn't work. &lt;BR /&gt;&lt;BR /&gt;My program is this. There are two processes, one is the master, one is the slave. The slave generates 8 threads. The master process reads the input data and dispatches to thethreads of the slaves. The 8 threads are supposed to use the 8 cores of the two quad-core processors. However, from the output of "top", only two cores were used, one by the master process, and one by the slave process. &lt;BR /&gt;&lt;BR /&gt;I tried to use I_MPI_PIN_DOMAIN, too. When "sock" was specified, two cores were used by the slave process. But nothing changed when other arguments were used. What does this mean? thanks!&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Sep 2009 14:13:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-with-pthread/m-p/882320#M1942</guid>
      <dc:creator>jackyjngwn</dc:creator>
      <dc:date>2009-09-01T14:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Intel MPI with pthread</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-with-pthread/m-p/882321#M1943</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/429854"&gt;jackyjngwn&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;I've linked to mpi_mt using -lmpi_mt, and changed MPI_INIT to MPI_INIT_thread, but it seems that these tricks didn't work. &lt;BR /&gt;&lt;BR /&gt;My program is this. There are two processes, one is the master, one is the slave. The slave generates 8 threads. The master process reads the input data and dispatches to thethreads of the slaves. The 8 threads are supposed to use the 8 cores of the two quad-core processors. However, from the output of "top", only two cores were used, one by the master process, and one by the slave process. &lt;BR /&gt;&lt;BR /&gt;I tried to use I_MPI_PIN_DOMAIN, too. When "sock" was specified, two cores were used by the slave process. But nothing changed when other arguments were used. What does this mean? thanks!&lt;/DIV&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Hi Jacky,&lt;BR /&gt;&lt;BR /&gt;Could you try to set I_MPI_PIN_DOMAIN to 'auto'. It it doesn't change the situation try to set I_MPI_PIN to 'off'.&lt;BR /&gt;&lt;BR /&gt;Best wihes,&lt;BR /&gt; Dmitry&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Sep 2009 07:46:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-with-pthread/m-p/882321#M1943</guid>
      <dc:creator>Dmitry_K_Intel2</dc:creator>
      <dc:date>2009-09-02T07:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Intel MPI with pthread</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-with-pthread/m-p/882322#M1944</link>
      <description>&lt;DIV style="margin:0px;"&gt;I've finally got it working, after I set I_MPI_PIN_MODE to node. Thank you allforthe help!&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Sep 2009 13:17:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/Intel-MPI-with-pthread/m-p/882322#M1944</guid>
      <dc:creator>jackyjngwn</dc:creator>
      <dc:date>2009-09-03T13:17:28Z</dc:date>
    </item>
  </channel>
</rss>

