On 12/30/2016 10:05 AM, Kartik Jujare wrote:

I am trying to run the step 40 through eclipse PTP but have been unsuccessful
in running it on more than one processor.

The following are the steps I tried:
a) Step - 40 compiles and runs on two processors when run from the terminal.
b) The template MPI Pi C++ project runs on two processors after creating the
run configuration file for 2 ranks.
c) The size is shown as two in the MPI template output twice, while the size
is shown as one in the step - 40 file twice - Available processors on local - 2
*
*
*//step-40*
*int main()*
*{*
*.*
*//mpi_initFinalize();*
*.*
*int size = MPI::COMM_WORLD.Get_size();*
*std::cout << size << std::endl;
*
*
*
*.*
*.*
*.*
*}*

Output:

*1*
*1*


Could someone please point out to me what the right procedure is to import
step 40 to eclipse PTP is? Would be glad to provide more information.

Kartik -- I'm not sure anyone has tried to use the PTP. Do I understand you correctly that
* step-40 runs correctly (shows size=2, twice) when run on the command line
* step-40 shows size=1, but twice, when run from inside the PTP
? Is this the exact same executable?

If this is correct, that would suggest that PTP is indeed starting the executable twice, but that they do not communicate. This can happen if the 'mpirun' command you use on the command line corresponds to the MPI implementation you used to build deal.II, but the 'mpirun' command PTP uses corresponds to a *different* MPI implementation on your system (presumably one that comes with PTP). That will not work. But I don't know enough about PTP to know how to resolve this issue.

Best
 W.

--
------------------------------------------------------------------------
Wolfgang Bangerth          email:                 bange...@colostate.edu
                           www: http://www.math.colostate.edu/~bangerth/

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to