diff options
author | tradke <tradke@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2000-06-27 12:20:56 +0000 |
---|---|---|
committer | tradke <tradke@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 2000-06-27 12:20:56 +0000 |
commit | 356596ae00efd05734e584beb39b5fcacc993add (patch) | |
tree | 81b45fee3f942e38a911d79dd809367975666d2e /src/Comm.c | |
parent | da786f7dc9563871941eb86d39fceddb64ec73b8 (diff) |
Immediately free MPI send requests after MPI_Isend() so that we don't have
to MPI_Wait() on them.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@234 b61c5cb5-eaca-4651-9a7a-d64986f99364
Diffstat (limited to 'src/Comm.c')
-rw-r--r-- | src/Comm.c | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -592,10 +592,6 @@ static int PUGH_DisableComm(pGH *pughGH, { if (comm->send_buffer[i]) { - if (comm->sreq[i] != MPI_REQUEST_NULL) - { - CACTUS_MPI_ERROR(MPI_Request_free(&comm->sreq[i])); - } free(comm->send_buffer[i]); comm->send_buffer[i] = NULL; } @@ -684,19 +680,7 @@ static int PUGH_Sync(pGH *pughGH, printf("PR : %f\n",t2-t1); #endif - /* For allocated buffers: wait for the last send. - Since these will be null if they - are not used, this is always safe. - */ - if (pughGH->commmodel == PUGH_ALLOCATEDBUFFERS) - { - MPI_Wait(&comm->sreq[2*dir], &mss); - } PostSendGA(pughGH, 2*dir, comm); - if (pughGH->commmodel == PUGH_ALLOCATEDBUFFERS) - { - MPI_Wait(&comm->sreq[2*dir+1], &mss); - } PostSendGA(pughGH, 2*dir+1, comm); #ifdef COMM_TIMING |