Used as a std::shared_ptr deleter (second argument) to overload delete ptr with cudaFree.
More...
#include <kernel-dispatch.h>
Public Member Functions | |
| void | operator() (T const *ptr) |
Called by std::shared_ptr when its reference count reaches zero. | |
Used as a std::shared_ptr deleter (second argument) to overload delete ptr with cudaFree.
This is necessary for std::shared_ptr to contain array buffers.
See also
|
inline |
Called by std::shared_ptr when its reference count reaches zero.