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
It is called inside the Plan constructor. Let's assume the second KOKKOSFFT_THROW_IF actually throws, the backend destroy_plan_and_info function will never be called because the Plan object will never finish construction.
I think we need to adhere to the RAII so that if any exception is thrown the backend plan object gets automatically freed.
The text was updated successfully, but these errors were encountered:
I suspect potential memory leaks.
Consider the snippet
kokkos-fft/fft/src/KokkosFFT_Cuda_plans.hpp
Lines 39 to 54 in 4582878
It is called inside the
Plan
constructor. Let's assume the secondKOKKOSFFT_THROW_IF
actually throws, the backenddestroy_plan_and_info
function will never be called because thePlan
object will never finish construction.I think we need to adhere to the RAII so that if any exception is thrown the backend plan object gets automatically freed.
The text was updated successfully, but these errors were encountered: