Shortcuts

Template Function ripple::gpu::memcpy_device_to_host

Function Documentation

template<typename HostPtr, typename DevPtr>
auto ripple::gpu::memcpy_device_to_host(HostPtr *host_ptr, const DevPtr *dev_ptr, size_t bytes) -> void

Copies the given number of bytes of data from the device pointer to the host pointer.

Note

This will block on the host until the copy is complete.

Parameters
  • host_ptr: The host pointer to copy from.

  • dev_ptr: The device pointer to copy to.

  • bytes: The number of bytes to copy.

Template Parameters
  • HostPtr: The type of the host pointer.

  • DevPtr: The type of the device pointer.

Docs

Access comprehensive developer documentation for Ripple

View Docs

Tutorials

Get tutorials to help with understand all features

View Tutorials

Examples

Find examples to help get started

View Examples