Fixed all in https://svn.open-mpi.org/trac/ompi/changeset/21941.

Thanks!


On Sep 2, 2009, at 7:38 PM, Lisandro Dalcin wrote:

Disclaimer: this is for trunk svn up'ed yesterday.

The code below should fail with ERR_COMM, but it succeed...

#include <mpi.h>
int main(int argc, char **argv)
{
  int *value, flag;
  MPI_Init(NULL, NULL);
  MPI_Comm_get_attr(MPI_COMM_NULL, MPI_TAG_UB, &value, &flag);
  MPI_Finalize();
  return 0;
}


Additionally, this is really not a bug, but I'll comment about it
anyway (I think I've commented about this some time ago)...

I would expect the two codes below to fail with MPI_ERR_KEYVAL, but
they fail with MPI_ERR_OTHER...

#include <mpi.h>
int main(int argc, char **argv)
{
  int *value, flag;
  MPI_Init(NULL, NULL);
MPI_Comm_get_attr(MPI_COMM_WORLD, MPI_KEYVAL_INVALID, &value, &flag);
  MPI_Finalize();
  return 0;
}

#include <mpi.h>
int main(int argc, char **argv)
{
  MPI_Win win;
  int *value, flag;
  MPI_Init(NULL, NULL);
  MPI_Win_create(MPI_BOTTOM, 0, 1,
                 MPI_INFO_NULL, MPI_COMM_SELF, &win);
  MPI_Win_get_attr(win, MPI_KEYVAL_INVALID, &value, &flag);
  MPI_Win_free(&win);
  MPI_Finalize();
  return 0;
}


--
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594

_______________________________________________
devel mailing list
de...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/devel



--
Jeff Squyres
jsquy...@cisco.com


Reply via email to