EPiGRAM-HS / ompi

Open MPI main development repository
https://www.open-mpi.org
Other
2 stars 1 forks source link

tmpbuf is likely not needed in try_get #10

Open lcebaman opened 5 years ago

lcebaman commented 5 years ago

Background information

We probably want to use the user's buffer so tmpbuf is likely not needed.

case TRY_GET:
        /* get an additional request */
        handle->req_count++;
        /* get buffer */
        if(trygetargs.tmpbuf) {
          buf1=(char*)handle->tmpbuf+(long)trygetargs.buf;
        } else {
          buf1=(void *)trygetargs.buf;
        }