[Trilinos-Users] c++ cray compiler gets wrong comm in mpi init
Heroux, Michael A
maherou at sandia.gov
Wed Dec 2 11:26:31 MST 2009
Jason,
What is the size of your MPI communicator?
Mike
On 12/1/09 5:28 PM, "Jason Slemons" <slemons at cray.com> wrote:
I have a short c++ program that gets the wrong communicator when using Epetra_MpiComm. pgi, pathscale, gnu and intel all seem to have no problem but cray gives me that there are 24,050 procs. Heres the program:
#include "Epetra_MpiComm.h"
int main(int argc, char *argv[])
{
// Initialize MPI
MPI_Init(&argc,&argv);
Epetra_MpiComm comm( MPI_COMM_WORLD );
cout<<comm.NumProc()<<endl<<"is too big"<<endl;
}
Heres the output:
slemons at seal1:/lus/nid00008/slemons> aprun Epetra_BasicPerfTest_test.exe
24050
is too big
Application 2752567 resources: utime 0, stime 0
Any ideas? Ive attached Epetra_MPIComm.h in case its helpful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20091202/d62c8edb/attachment.html
More information about the Trilinos-Users
mailing list