copyDevice2DeviceArray

copyDevice2DeviceArray#

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

◆ copyDevice2DeviceArray()

template<typename T >
void copyDevice2DeviceArray ( const T *  source_device_array,
const stdgpu::index64_t  count,
T *  destination_device_array,
const MemoryCopy  check_safety = MemoryCopy::RANGE_CHECK 
)

Copies the given device array to the device.

Template Parameters
TThe type of the array
Parameters
[in]source_device_arrayThe device array
[in]countThe number of elements of source_device_array
[out]destination_device_arrayThe device array
[in]check_safetyTrue if this function should check whether copying is safe, false otherwise
Note
The source and destination arrays might also be managed arrays