[PATCH] OpenCL 1.2 allow explicit zero-to-event_t cast
Pekka Jääskeläinen
pekka.jaaskelainen at tut.fi
Mon Sep 29 05:36:29 PDT 2014
On 09/29/2014 12:54 PM, Fraser Cormack wrote:
> The fact that you can use 0 as an event_t is in Section 6.12.10 of the OpenCL
> 1.2 specification. The use of an explicit cast is used in the
> async_copy* kernels in the 'basic' subtest of the conformance test suite
I wonder if implicit cast should work as well?
At least the specs doesn't mention the zero must be explicitly casted.
In any case, the patch looks good to me.
--
Pekka
More information about the cfe-commits
mailing list