After writing some tests, I discovered Open MPI's MPI_Get_address()
fails if fed with MPI_BOTTOM. Is this on purpose of just an error
checking oversight?


$ cat get_address.c
#include <mpi.h>
int main(int argc, char *argv[])
{
  MPI_Aint addr;
  MPI_Init(&argc, &argv);
  MPI_Get_address(MPI_BOTTOM, &addr);
  MPI_Finalize();
  return 0;
}
$ mpicc get_address.c
$ ./a.out
[kw2060:18815] *** An error occurred in MPI_Get_address
[kw2060:18815] *** reported by process [140737192329217,140655883976704]
[kw2060:18815] *** on communicator MPI_COMM_WORLD
[kw2060:18815] *** MPI_ERR_ARG: invalid argument of some other kind
[kw2060:18815] *** MPI_ERRORS_ARE_FATAL (processes in this
communicator will now abort,
[kw2060:18815] ***    and potentially your MPI job)


-- 
Lisandro Dalcin
============
Research Scientist
Computer, Electrical and Mathematical Sciences & Engineering (CEMSE)
Numerical Porous Media Center (NumPor)
King Abdullah University of Science and Technology (KAUST)
http://numpor.kaust.edu.sa/

4700 King Abdullah University of Science and Technology
al-Khawarizmi Bldg (Bldg 1), Office # 4332
Thuwal 23955-6900, Kingdom of Saudi Arabia
http://www.kaust.edu.sa

Office Phone: +966 12 808-0459

Reply via email to