Last active
November 26, 2018 14:24
-
-
Save turkishviking/9c89130b946935dc138df05cc31794c9 to your computer and use it in GitHub Desktop.
sycl gpu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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