We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07594d0 commit b8607d1Copy full SHA for b8607d1
offload/plugins-nextgen/cuda/src/rtl.cpp
@@ -955,7 +955,9 @@ struct CUDADeviceTy : public GenericDeviceTy {
955
return Plugin::success();
956
957
if (Interop->async_info) {
958
- // TODO: release the stream back to the pool?
+ if (auto Err = CUDAStreamManager.returnResource(
959
+ *static_cast<CUstream *>(Interop->async_info->Queue)))
960
+ return Err;
961
delete Interop->async_info;
962
}
963
delete Interop;
0 commit comments