<?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 MPI collect data from process in array in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/MPI-collect-data-from-process-in-array/m-p/959581#M3151</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to use mpi to split computations on n process on a array.&lt;BR /&gt;
	So say process have computed the values for their ranges for eg:&lt;BR /&gt;
	&lt;BR /&gt;
	process 1: Array[1 to a1]&lt;BR /&gt;
	process 2: Array[a1+1 to a2]&lt;BR /&gt;
	process 3: Array[a2+1 to a3]&lt;BR /&gt;
	process 4: Array[a3+1 to a4]&lt;BR /&gt;
	&lt;BR /&gt;
	What is the best way to send and receive data when it comes to arrays?&lt;BR /&gt;
	&lt;BR /&gt;
	Also can the same be applied it the processing of data is in contiguous memory locations? for eg:&lt;/P&gt;

&lt;P&gt;process1: Array[1,5,9,13 ...]&lt;BR /&gt;
	​process2: Array[2,6,10,14 ...]&lt;BR /&gt;
	​process3: Array[3,7,11,15 ...]&lt;BR /&gt;
	​process4: Array[4,8,12,16...]&lt;BR /&gt;
	&lt;BR /&gt;
	Thanks&lt;BR /&gt;
	Ajay&lt;/P&gt;</description>
    <pubDate>Tue, 25 Mar 2014 19:23:18 GMT</pubDate>
    <dc:creator>Ajay_N_</dc:creator>
    <dc:date>2014-03-25T19:23:18Z</dc:date>
    <item>
      <title>MPI collect data from process in array</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/MPI-collect-data-from-process-in-array/m-p/959581#M3151</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to use mpi to split computations on n process on a array.&lt;BR /&gt;
	So say process have computed the values for their ranges for eg:&lt;BR /&gt;
	&lt;BR /&gt;
	process 1: Array[1 to a1]&lt;BR /&gt;
	process 2: Array[a1+1 to a2]&lt;BR /&gt;
	process 3: Array[a2+1 to a3]&lt;BR /&gt;
	process 4: Array[a3+1 to a4]&lt;BR /&gt;
	&lt;BR /&gt;
	What is the best way to send and receive data when it comes to arrays?&lt;BR /&gt;
	&lt;BR /&gt;
	Also can the same be applied it the processing of data is in contiguous memory locations? for eg:&lt;/P&gt;

&lt;P&gt;process1: Array[1,5,9,13 ...]&lt;BR /&gt;
	​process2: Array[2,6,10,14 ...]&lt;BR /&gt;
	​process3: Array[3,7,11,15 ...]&lt;BR /&gt;
	​process4: Array[4,8,12,16...]&lt;BR /&gt;
	&lt;BR /&gt;
	Thanks&lt;BR /&gt;
	Ajay&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2014 19:23:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/MPI-collect-data-from-process-in-array/m-p/959581#M3151</guid>
      <dc:creator>Ajay_N_</dc:creator>
      <dc:date>2014-03-25T19:23:18Z</dc:date>
    </item>
    <item>
      <title>The goal being to recieve the</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/MPI-collect-data-from-process-in-array/m-p/959582#M3152</link>
      <description>&lt;P&gt;The goal being to recieve the all the data computed by each process in the same array by the master contiguously&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2014 19:27:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/MPI-collect-data-from-process-in-array/m-p/959582#M3152</guid>
      <dc:creator>Ajay_N_</dc:creator>
      <dc:date>2014-03-25T19:27:13Z</dc:date>
    </item>
    <item>
      <title>Hi Ajay,</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/MPI-collect-data-from-process-in-array/m-p/959583#M3153</link>
      <description>&lt;P&gt;Hi Ajay,&lt;/P&gt;

&lt;P&gt;With the data layouts you have here, if you can keep the data for each rank contiguous, I would recommend using MPI_Scatter and MPI_Gather.&amp;nbsp; If you need the data to remain strided, the use MPI_Scatterv and MPI_Gatherv instead.&lt;/P&gt;

&lt;P&gt;Sincerely,&lt;BR /&gt;
	James Tullos&lt;BR /&gt;
	Technical Consulting Engineer&lt;BR /&gt;
	Intel® Cluster Tools&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2014 21:45:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/MPI-collect-data-from-process-in-array/m-p/959583#M3153</guid>
      <dc:creator>James_T_Intel</dc:creator>
      <dc:date>2014-04-08T21:45:11Z</dc:date>
    </item>
  </channel>
</rss>

