When I pass an array of 2 wait events into clEnqueueReadBuffer, with one event created manually, the ref counts are not incremented.
As I understand, all events passed into cl methods should get their ref counts incremented.
This works correctly with my GPU, but not for CPU (WIndows 7 64 bit, core i7 3770, latest Intel OpenCL driver for CPU)
Thanks, Robert. I am working on this.
When I call clCreateUserEvent, does this use the Intel ICD, or does it use the host OpenCL library.
Because, I am using the AMD OpenCL SDK, with target set to CPU.