Shortcuts

Template Function ripple::gpu::memcpy_host_to_device

Function Documentation

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

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

Note

This will block on the host until the copy completes.

Parameters
  • dev_ptr: The device pointer to copy to.

  • host_ptr: The host pointer to copy from.

  • bytes: The number of bytes to copy.

Template Parameters
  • DevPtr: The type of the device pointer.

  • HostPtr: The type of the host 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