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
If CUDA_ERROR_FUNC, CUSOLVER_ERROR_FUNC etc is called and the result != CUDA_SUCCESS, a cuda_error will be thrown and any allocated pointers will not be deallocated, causing a memory leak.
We should replace each *_ERROR_FUNC with ERROR_FUNC_WITH_POINTERS_TO_DEALLOCATE or something like that. This would also provide a list of pointers to deallocate in the event that the operation does not return CUDA_SUCCESS, preventing memory leaks.
If
CUDA_ERROR_FUNC
,CUSOLVER_ERROR_FUNC
etc is called and the result!= CUDA_SUCCESS
, acuda_error
will be thrown and any allocated pointers will not be deallocated, causing a memory leak.We should replace each
*_ERROR_FUNC
withERROR_FUNC_WITH_POINTERS_TO_DEALLOCATE
or something like that. This would also provide a list of pointers to deallocate in the event that the operation does not returnCUDA_SUCCESS
, preventing memory leaks.Ping @Alexander-Kleymenov
The text was updated successfully, but these errors were encountered: