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 | |
} |