createDeviceObject — stdgpu Latest documentation (original) (raw)

createDeviceObject#

stdgpu: stdgpu::mutex_array::createDeviceObject

stdgpu Latest

Efficient STL-like Data Structures on the GPU

| | createDeviceObject() [2/2] template<typename Block = mutex_default_type, typename Allocator = safe_device_allocator> template<typename ExecutionPolicy , STDGPU_DETAIL_OVERLOAD_IF(is_execution_policy_v< remove_cvref_t< ExecutionPolicy > >) > Creates an object of this class on the GPU (device) Template Parameters ExecutionPolicyThe type of the execution policy Parameters [in]policyThe execution policy, e.g. host or device, corresponding to the allocator [in]sizeThe size of this object [in]allocatorThe allocator instance to use ReturnsA newly created object of this class allocated on the GPU (device) | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |