Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想写一个内核来计算向量乘积的总和,所以像
size_t i = get_global_id(0); for(int k=0; i<n; k++) { result[i] = a[k][i] * b[k][i]; }
即a和b是长度为 k 的设备指针数组。
a
b
如何在 OpenCL 和 JOCL 中传递这样的参数?