Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: [OMPI users] testsome returns negative indices
From: Ross Boylan (ross_at_[hidden])
Date: 2014-03-20 20:39:59

MPI_Testsome seems to have returned successfully, with a positive
outcount, and yet given me a negative index, -4432. Can anyone help me
understand what's going on?

The call is from R, and so there might be a translation issue. My first
thought was that it might be 32 vs 64 bit integers, but both OMPI and R
seem to be using the C int type for the integers.

Here's the inner call:

SEXP mpi_testsome(SEXP sexp_count){
         int countn=INTEGER(sexp_count)[0];
                 SEXP indices;
                 PROTECT (indices = allocVector(INTSXP, countn+1));
         mpi_errhandler(MPI_Testsome(countn, request, &INTEGER(indices)[0],
                 &INTEGER(indices)[1], status));
         return indices;

SEXP is an R structure.

OMPI 1.7.4.

Ross Boylan