[Beignet] Fwd: clSetKernelArg CL_INVALID_ARG_SIZE error

Song, Ruiling ruiling.song at intel.com
Wed Nov 5 23:17:28 PST 2014


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:beignet-bounces at lists.freedesktop.org] On Behalf Of Алексей Родионов
Sent: Wednesday, November 05, 2014 9:26 PM
To: beignet at lists.freedesktop.org
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?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/beignet/attachments/20141106/c0565504/attachment-0001.html>


More information about the Beignet mailing list