-
Notifications
You must be signed in to change notification settings - Fork 245
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
Wrap clCreateCommandQueueWithProperties #198
Comments
I tried the below quick hack but I am getting INVALID_COMMAND_QUEUE later on. There is no error upon calling clCreateCommandQueue though. Also setting an invalid QUEUE_SIZE does result in INVALID_QUEUE_VALUE, for example on AMD creating a queue with 16MB size when 8MB is max. glupescu@5874ce0#diff-93de4fb0b5fa13ed2f66448c780b3102 From stackoverflow https://stackoverflow.com/questions/45767759/how-to-set-device-side-queue-size-in-pyopencl/49957843#49957843 |
Sorry, I don't have the spare cycles at this moment to investigate in detail. I've put this on my list for later in the summer. |
#240 adds support for this. I'd be happy to hear your feedback. |
Will definitely check this out soon - thanks for adding support on this. |
Kicking this slightly back to life: did you manage to get a device-side queue working through pyopencl ever? I have spent the better part of today trying to make this work, but the closest i've gotten is the queue being created and a "clEnqueueNDRangeKernel failed: INVALID_COMMAND_QUEUE" being thrown at me when I try to enqueue a dumb kernel (that does nothing). |
What ICD (OpenCL driver) are you using? |
Edit: PEBCAK The ranting below here is because i didn't understand that you can't enqueue to a device side queue from the host side. You need 2 queues. One on the host, one on the device. You can mark the device queue as default. -- Both using this way: and... actually, I lie, on nVidia this leads to Segfault, though I have read that the ...withProperties() function is supported now. Removing this and simply making an in-order on-host queue (default) the kernel runs fine... |
Thanks for following up! Just to be clear: Did you get things to work on Intel? (I'd expect that to work more than I'd epxect the same of Nvidia.) |
Eh! It's complicated. So, I am for sure able to create on-device queues on both intel and nvidia platforms. I have made the following observations:
|
Thanks for reporting back! Could you share some example code? I'd like to include that in the tests, if for no other reason than to make sure that the things that are working stay working. |
This would be the pattern to follow:
pyopencl/src/c_wrapper/command_queue.cpp
Lines 42 to 66 in 21b09e3
The text was updated successfully, but these errors were encountered: