OpenCL: Store pointer to global memory in local memory?

后端 未结 3 1680
小鲜肉
小鲜肉 2021-01-03 11:40

any solutions?

Is that even possible?

__global *float abc; // pointer to global memory stored in private memory

I want abc to be st

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-03 12:12

    I think this is clarified 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
    

    As I understand for pointers: [where they point] type * [where to store] name;

提交回复
热议问题