Skip to content

Commit

Permalink
Merge pull request ComputationalRadiationPhysics#1326 from psychocode…
Browse files Browse the repository at this point in the history
…rHPC/fix-asyncCommunication

fix deadlock in asyncSend
  • Loading branch information
ax3l committed Jan 11, 2016
2 parents abffb22 + 39158c7 commit 16b85fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/libPMacc/include/memory/buffers/GridBuffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ class GridBuffer
{
__startTransaction(serialEvent + sendEvents[sendEx]);
sendEvents[sendEx] = sendExchanges[sendEx]->startSend(gpuFree);
gpuFree = sendEvents[sendEx];
__endTransaction();
return sendEvents[sendEx];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ class ParticlesBuffer
EventTask exchangeMemoryIndexerGPUEvent;
EventTask returnEvent = framesExchanges->asyncSend(serialEvent, ex, framesExchangesGPUEvent) +
exchangeMemoryIndexer->asyncSend(serialEvent, ex, exchangeMemoryIndexerGPUEvent);
gpuFree = framesExchangesGPUEvent + exchangeMemoryIndexerGPUEvent;
gpuFree = returnEvent;
return returnEvent;
}

Expand Down

0 comments on commit 16b85fe

Please sign in to comment.