make_device

make_device#

stdgpu: stdgpu::make_device
stdgpu Latest
Efficient STL-like Data Structures on the GPU

◆ make_device()

template<typename T >
STDGPU_HOST_DEVICE device_ptr< T > stdgpu::make_device ( T *  device_array)

Constructs a device_ptr object.

Template Parameters
TThe type of the array
Parameters
[in]device_arrayAn array
Returns
A device_ptr pointing to the array