device_delete
#
-
template<typename T>
inline void thrust::device_delete( - thrust::device_ptr<T> ptr,
- const size_t n = 1,
device_delete
deletes adevice_ptr
allocated withdevice_new
.See also
See also
- Parameters:
ptr – The
device_ptr
to delete, assumed to have been allocated withdevice_new
.n – The number of objects to destroy at
ptr
. Defaults to1
similar todevice_new
.