device_ptr

device_ptr#

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

◆ device_ptr

template<typename T >
using stdgpu::device_ptr = typedef thrust::pointer<T, thrust::device_system_tag>

A host pointer class allowing to call thrust algorithms without explicitly using the respective execution policy policy.

Note
Considered equivalent to thrust::device_ptr but can be processed in plain C++