You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commit: f6df1fb
File: Core/src/main/velocity/com/nativelibs4java/opencl/CLEvent.java
line 92: queue.getContext().getPlatform().requireMinVersionValue("clSetEventCallback", 1.1);
This line breaks callbacks for CLUserEvent - it's queue is null, thus NPE is thrown. Possible soultion - create new field CLContext field in CLEvent, create new constructor with CLContext instead of CLQueue; use it if queue is null, but context is available like in case of CLUserEvent; don't forget to init context in constructor with queue in parameters; and finally fix this line by using context but not queue.
Another possible solution - revert changes in this file.
The text was updated successfully, but these errors were encountered:
swarr
changed the title
CLUserEvent could fail to register callback with NPE
CLUserEvent fail to register callback with NPE
Jun 14, 2015
Commit: f6df1fb
File: Core/src/main/velocity/com/nativelibs4java/opencl/CLEvent.java
line 92: queue.getContext().getPlatform().requireMinVersionValue("clSetEventCallback", 1.1);
This line breaks callbacks for CLUserEvent - it's queue is null, thus NPE is thrown. Possible soultion - create new field CLContext field in CLEvent, create new constructor with CLContext instead of CLQueue; use it if queue is null, but context is available like in case of CLUserEvent; don't forget to init context in constructor with queue in parameters; and finally fix this line by using context but not queue.
Another possible solution - revert changes in this file.
The text was updated successfully, but these errors were encountered: