Extended CUDA Library (ecuda)
2.0
|
The default destruction policy used by smart pointers to device memory. More...
#include <common.hpp>
Public Member Functions | |
__HOST__ __DEVICE__ | default_device_delete () __NOEXCEPT__ |
Constructs an ecuda::default_device_delete object. More... | |
template<typename U > | |
__HOST__ __DEVICE__ | default_device_delete (const default_device_delete< U > &src) __NOEXCEPT__ |
Constructs an ecuda::default_device_delete object from another one. More... | |
__HOST__ __DEVICE__ void | operator() (T *ptr) const |
Calls cudaFree() on a pointer. More... | |
The default destruction policy used by smart pointers to device memory.
The CUDA API function cudaFree() is used to deallocate memory.
Definition at line 64 of file common.hpp.
|
inline |
Constructs an ecuda::default_device_delete object.
Definition at line 69 of file common.hpp.
|
inline |
Constructs an ecuda::default_device_delete object from another one.
This constructor will only participate in overload resolution if U* is implicitly convertible to T*.
Definition at line 77 of file common.hpp.
|
inline |
Calls cudaFree() on a pointer.
ptr | an object or array to delete |
Definition at line 83 of file common.hpp.