对于我的OpenCL内核中的语句
uint4 checkCoord; // assign some value
if(checkCoord==(uint4)(0,0,0,0)){
; // do something
}
Run Code Online (Sandbox Code Playgroud)
我在OpenCL编译器中收到以下错误
statement requires expression of scalar type ('int __attribute__((ext_vector_type(4,4)))' invalid)
Run Code Online (Sandbox Code Playgroud)
将uint4类型的变量转换为bool(或标量)值的最简单方法是什么?
opencl ×1