createDeviceObject

createDeviceObject#

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

◆ createDeviceObject() [1/2]

template<typename T , typename Allocator = safe_device_allocator<T>>
static atomic stdgpu::atomic< T, Allocator >::createDeviceObject ( const Allocator &  allocator = Allocator())
static

Creates an object of this class on the GPU (device)

Parameters
[in]allocatorThe allocator instance to use
Returns
A newly created object of this class allocated on the GPU (device)
Note
The size is implicitly set to 1 (and not needed as a parameter) as the object only manages a single value