Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JOCLSimpleImage Runtime Error #1

Closed
tpavelka opened this issue Aug 26, 2020 · 3 comments
Closed

JOCLSimpleImage Runtime Error #1

tpavelka opened this issue Aug 26, 2020 · 3 comments

Comments

@tpavelka
Copy link

Exception in thread "AWT-EventQueue-0" org.jocl.CLException: CL_INVALID_QUEUE_PROPERTIES
at org.jocl.CL.checkResult(CL.java:825)
at org.jocl.CL.clCreateCommandQueueWithProperties(CL.java:5383)
at JOCLSimpleImage.initCL(JOCLSimpleImage.java:290)
at JOCLSimpleImage.(JOCLSimpleImage.java:190)
at JOCLSimpleImage$1.run(JOCLSimpleImage.java:38)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

@tpavelka
Copy link
Author

tpavelka commented Aug 26, 2020

OpenCL 2.1
Ellesmere

@tpavelka
Copy link
Author

tpavelka commented Aug 26, 2020

This error was fixed by deleting the following lines in JOCLSimpleImage.java::~Line230:

    properties.addProperty(CL_QUEUE_PROFILING_ENABLE, 1);
    properties.addProperty(CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE, 1);

@gpu
Copy link
Owner

gpu commented Sep 6, 2020

(Again: Sorry for the delay...)

According to the device info that you showed, the CL_QUEUE_PROFILING_ENABLE property should be supported. It does not support the CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE, so it should be sufficient to remove that. (I'll have to review why I added this in the first place, but it should not be critical here).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants