Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] testsome returns negative indices
From: Jeff Squyres (jsquyres) (jsquyres_at_[hidden])
Date: 2014-03-21 10:11:03

Is that C or R code?

If it's R, I think the next step would be to check the R wrapper for MPI_Testsome and see what is actually being returned by OMPI in C before it gets converted to R. I'm afraid I don't know R, so I can't really comment on the syntax / correctness of your code snipit.

If it's C -- which I don't think it is, but it *could* be...? -- I would need to understand your syntax in calling MPI_Testsome better; e.g., what's &INTEGER(foo)[x]?

On Mar 20, 2014, at 8:39 PM, Ross Boylan <ross_at_[hidden]> wrote:

> 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
> _______________________________________________
> users mailing list
> users_at_[hidden]

Jeff Squyres
For corporate legal information go to: