[Trilinos-Users] c++ cray compiler gets wrong comm in mpi init
Heroux, Michael A
maherou at sandia.gov
Wed Dec 2 10:52:47 MST 2009
Jason,
This is very strange. I have never seen this before. The only time I have seen this kind of behavior is if the configuration parameters are different between how the library and the main.cpp were built, in which case the size of the header file data would be different in the library than in the main program and references to attributes would be incorrect.
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/af8901fb/attachment.html
More information about the Trilinos-Users
mailing list