Forum Discussion
Altera_Forum
Honored Contributor
8 years agoRead and print data from local memory .
Read and print from local memory . Please, Do you can tell me if we can read and print the data stored in local memory. My data is defined as __local adress space in the kernel and setKernelArg in...
Altera_Forum
Honored Contributor
8 years agoYou CANNOT read from or write to local memory buffers from the host. You can only communicate between host and device using global memory. You have to write your data to global memory in the host, then copy it to local memory in the kernel, then write back to global memory in the kernel, then read it from global memory in the host. Local memory is designed to be used for keeping temporary data on the device, and is not directly accessible from the host.