size_t opencl

来源:互联网 发布:unity3d局域网联机 编辑:程序博客网 时间:2024/05/16 09:02

现在,size_t不允许出现在opencl的kernal函数参数定义中,可以用uint代替。

size_t can be a 32-bit or a 64-bitunsigned integer, and the OpenCL compiler does not accept variabletypes that are implementation-dependent.

http://www.geeks3d.com/20100323/opencl-size_t-not-allowed-in-kernels-aguments/