Graphics
Intel® graphics drivers and software, compatibility, troubleshooting, performance, and optimization
20499 Discussions

OpenCL: clSetEventCallback with callback calling clReleaseEvent destroys event too soon

SunSerega
Beginner
588 Views

I'm only able to reproduce this on an old laptop when I make context with 2 devices:

1. Intel(R) HD Graphics 4600
2. Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz
(these are device names, which I got from clGetDeviceInfo)

If I create context with only one of these devices - I get no error.

 

---


The easiest way to reproduce:

1. clCreateUserEvent, to have manual control over when it's fired;
2. clSetEventCallback, with callback calling clReleaseEvent;
3. CL_INVALID_EVENT is returned by clSetUserEventStatus. Also, any other callbacks may not execute at all.

 

Simple way to get around is to call clRetainEvent before clSetEventCallback and clReleaseEvent after.

So I guess that the problem is in the event getting destroyed before clSetUserEventStatus finishes executing.

 

---

Drivers are up to date, confirmed with Intel Driver&Support Assistant.

OS: Windows10 with all the latest updates.

0 Kudos
1 Solution
DeividA_Intel
Moderator
539 Views

Hello SunSerega  


  

Thank you for posting on the Intel® communities.   


  

Due to this product being discontinued, Intel Customer Service no longer supports inquiries for it, but perhaps fellow community members have the knowledge to jump in and help. You may also find the Discontinued Products website helpful to address your request. Thank you for understanding.  


  

Discontinued Products: 


 

Please keep in mind that this thread will no longer be monitored by Intel.  


Regards,  

Deivid A.  

Intel Customer Support Technician  


View solution in original post

0 Kudos
1 Reply
DeividA_Intel
Moderator
540 Views

Hello SunSerega  


  

Thank you for posting on the Intel® communities.   


  

Due to this product being discontinued, Intel Customer Service no longer supports inquiries for it, but perhaps fellow community members have the knowledge to jump in and help. You may also find the Discontinued Products website helpful to address your request. Thank you for understanding.  


  

Discontinued Products: 


 

Please keep in mind that this thread will no longer be monitored by Intel.  


Regards,  

Deivid A.  

Intel Customer Support Technician  


0 Kudos
Reply