现在的位置: 首页 > 综合 > 正文

opencl kernel 参数限制

2013年11月16日 ⁄ 综合 ⁄ 共 474字 ⁄ 字号 评论关闭

Arguments to __kernel functions in a program cannot be declared with the built-in
scalar types bool, half, size_t, ptrdiff_t, intptr_t, and uintptr_t. The
size in bytes of these types except half are implementation-defined and in addition can
also be different for the OpenCL device and the host processor making it difficult to
allocate buffer objects to be passed as arguments to a kernel declared as pointer to these
types. half is not supported as half can be used as a storage format only and is not a
data type on which floating-point arithmetic can be performed.

抱歉!评论已关闭.