OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1719 Discussions

Events not getting their ref count incremented

ABoxe
Beginner
244 Views

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)

0 Kudos
3 Replies
Robert_I_Intel
Employee
244 Views

Aaron,

Could you please send me a small reproducer (a small buildable code sample) that demonstrates this behavior? Thanks!

0 Kudos
ABoxe
Beginner
244 Views

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. 

0 Kudos
ABoxe
Beginner
244 Views

OK, so it turns out that I was not initializing the CPU context correctly.,  Working fine now.

0 Kudos
Reply