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));
                UNPROTECT(1);
        return indices;
}

SEXP is an R structure.

OMPI 1.7.4.

Ross Boylan

Reply via email to