Skip to content

Instantly share code, notes, and snippets.

@turkishviking
Last active November 26, 2018 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save turkishviking/9c89130b946935dc138df05cc31794c9 to your computer and use it in GitHub Desktop.
Save turkishviking/9c89130b946935dc138df05cc31794c9 to your computer and use it in GitHub Desktop.
sycl gpu
gpu_data::copy_to_host() const
{
// here data_host and data_device are mutable float* member of gpu_data
sycl_device::device().memcpyDeviceToHost(data_host, data_device, size()*sizeof(float)); // doesn't work
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment