[Trilinos-Users] c++ cray compiler gets wrong comm in mpi init

Jason Slemons slemons at cray.com
Tue Dec 1 16:28:52 MST 2009


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/20091201/63082354/attachment-0001.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Epetra_MpiComm.h
Url: https://software.sandia.gov/pipermail/trilinos-users/attachments/20091201/63082354/attachment-0001.h 


More information about the Trilinos-Users mailing list