createDeviceObject

createDeviceObject#

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

◆ createDeviceObject() [1/2]

template<typename Block = mutex_default_type, typename Allocator = safe_device_allocator<Block>>
static mutex_array stdgpu::mutex_array< Block, Allocator >::createDeviceObject ( const index_t size,
const Allocator &  allocator = Allocator() 
)
static

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

Parameters
[in]sizeThe size of this object
[in]allocatorThe allocator instance to use
Returns
A newly created object of this class allocated on the GPU (device)