Running Step-40 with eclipse PTP

53 views
Skip to first unread message

Kartik Jujare

unread,
Dec 30, 2016, 12:05:03 PM12/30/16
to deal.II User Group
Hello,

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.

Regards,
Kartik Jujare

Kartik Jujare

unread,
Dec 30, 2016, 12:07:56 PM12/30/16
to deal.II User Group
Correction to the code above: mpi_initFinalize is not commented in the code.

Wolfgang Bangerth

unread,
Jan 4, 2017, 9:24:42 AM1/4/17
to dea...@googlegroups.com
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: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

Message has been deleted

Seyed Ali Mohseni

unread,
Jan 4, 2017, 10:35:03 AM1/4/17
to deal.II User Group
Hi Kartik,

I am not 100% sure what you are trying to achieve, but I tried once to debug step-40 inside eclipse.
I would suggest you to read the following: 


and also


If you have MPICH or OpenMPI, you can setup the debugger SDM and debug in parallel.
Eclipse is awesome, if you know how to work with it ;)

Best regards,
S. A. Mohseni

Kartik Jujare

unread,
Jan 9, 2017, 6:58:37 PM1/9/17
to deal.II User Group, bang...@colostate.edu
Thank you Wolfgang and Seyed for your replies. I tested it on another PC where dealii was installed using the candi script. The eclipse parallel run was successful for step 40. So I uninstalled my installations of p4est petsc and dealii and reinstalled using candi without changing any configurations in eclipse.

The only roadblock I faced initially and the procedure followed is this:

a) to run the candi script on 16.04, I had to force the platform as follows:
./candi.sh --platform=./deal.II-toolchain/platforms/supported/ubuntu15.platform -j2 

b) Using the candi script to install on 16.04 will ask for prerequisties to be installed of which the following two were not found.
libblas3gf liblapack3gf
 
These two I was able to install by searching for 
"lapack" and "blas" in synaptic and installing everything I thought relevant.

c)Then hit enter and continue as usual.
The eclipse parallel run was successful.

I think there was some mistake that was made while installing the softwares individually.
Also, please excuse me for marking my own answer as the best answer. But I guess this might help someone.

Regards,
Kartik Jujare

Wolfgang Bangerth

unread,
Jan 9, 2017, 9:58:00 PM1/9/17
to Kartik Jujare, deal.II User Group
On 01/09/2017 04:58 PM, Kartik Jujare wrote:
>
>
> I think there was some mistake that was made while installing the softwares
> individually.
> Also, please excuse me for marking my own answer as the best answer. But I
> guess this might help someone.

That's definitely appropriate if you figure out how to make things work!
Cheers
Reply all
Reply to author
Forward
0 new messages