SyTen

◆ free()

void syten::Cuda::CudaAllocator::free ( CudaPtr< void >  ptr)
inline

Handles freeing the CudaPtr ptr by returning it to the free list.

References syten::Cuda::CudaPtr< T >::dev(), free_memory(), freelist, freelistmtx, syten::Cuda::CudaPtr< T >::get(), handle_or_insert(), std::map< K, T >::size(), syten::Cuda::CudaPtr< T >::size_idx(), and SYTEN_ASSERT_MSG.

Referenced by syten::Cuda::free(), and syten::Cuda::setup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: