You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move mutex unlock after the cudaEventRecord() in DeviceFree() (#240)
This commit fixes a race for the CUDA event between DeviceFree() and
DeviceAllocate(). If the mutex is unlocked before the
cudaEventRecord(), there is a short period of time when
- the memory block is already in the free list (cached_blocks), and
- the CUDA event status is not yet cudaErrorNotReady
and the DeviceAllocate() may consider that memory block to be free to
be used for another CUDA stream.
0 commit comments