cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

boxerab
Challenger

reference count on event

RIght after I create a user event, I check the reference count, and it equals 2.

Does this make sense?  I was expecting it to be equal to 1.

0 Likes
1 Reply
matszpk
Adept III

Reference counters counts not only your references, but also created internally by OpenCL implementation. References can be used to catch memory leaks or debugging. The OpenCL specification says that references cannot be used in general purposes in an applications.

0 Likes