Template Function thrust::device_pointer_cast(T *)¶
Defined in File device_ptr.h
Function Documentation¶
-
template<typename T>__host__ __device__ device_ptr<T> thrust::device_pointer_cast(T * ptr) device_pointer_castcreates a device_ptr from a raw pointer which is presumed to point to a location in device memory.- Return
A device_ptr wrapping ptr.
- Parameters
ptr: A raw pointer, presumed to point to a location in device memory.