OpenCL:将指针存储到本地内存中的全局内存?

use*_*529 2 c gpgpu opencl

任何解决方案

这甚至可能吗?

__global *float abc; // pointer to global memory stored in private memory
Run Code Online (Sandbox Code Playgroud)

我希望abc存储在本地内存而不是私有内存中.

小智 5

我认为这在此列出清单5.2:

__global int global_data[128];  // 128 integers allocated on global memory
__local float *lf;  // pointer placed on the private memory, which points to a single-precision float located on the local memory
__global char * __local lgc[8];  // 8 pointers stored on the local memory that points to a char located on the global memory
Run Code Online (Sandbox Code Playgroud)

正如我对指针的理解:[他们指出的地方]类型*[存储地点]名称;