Yes, it is a beignet bug, OpenCL spec specifies sizeof(float3) same as sizeof(float4). So using sizeof(cl_float3) when you call clSetKernelArg is the right way. I will send a patch to fix it.
From: Beignet [mailto:[email protected]] On Behalf Of Алексей Родионов Sent: Wednesday, November 05, 2014 9:26 PM To: [email protected] Subject: [Beignet] Fwd: clSetKernelArg CL_INVALID_ARG_SIZE error I have a kernel with float3 argument. In C++ code I use cl_float3 (which is actually cl_float4). When I call clSetKernelArg with 3rd argument sizeof(cl_float3) it gives me an error CL_INVALID_ARG_SIZE. If i use my own structure with just 3 floats - it works. With NVIDIA it works with cl_float3 just fine. Is it a bug?
_______________________________________________ Beignet mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/beignet
