有什么解决办法吗?
这可能吗?
__global *float abc; // pointer to global memory stored in private memory
我希望将 abc 存储在本地内存中,而不是私有(private)内存中。
最佳答案
我认为这已经澄清了 here list 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
据我所知,对于指针:[它们指向的位置] 输入 * [存储位置] 名称;
关于c - OpenCL:将指向全局内存的指针存储在本地内存中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11978024/