Closed Sergei-Lebedev closed 2 months ago
During EC CUDA resource cleanup original CUDA context can be already destroyed. In such case calls to cudaStreamDestroy, cudaEventDestroy etc. might result in segfault. This PR adds check that CUDA context is valid before doing cleanup.
What
During EC CUDA resource cleanup original CUDA context can be already destroyed. In such case calls to cudaStreamDestroy, cudaEventDestroy etc. might result in segfault. This PR adds check that CUDA context is valid before doing cleanup.