underlying C OPENCL version not matching the latest version of PyOpenCL wrapper #700
Unanswered
KingofSnow01
asked this question in
Q&A
Replies: 2 comments 4 replies
-
There are a number of variables here, unfortunately:
Ultimately, the OpenCL API supported will be determined by the lowest of the three. (Fortunately, all but the first are easy to fix, once identified.) Also, ideally provide full tracebacks for the errors you see, these often have important contextual clues. |
Beta Was this translation helpful? Give feedback.
4 replies
-
As a side note, please note that SVM is an optional feature in OpenCL 3.0. The actual support might depend on your driver & device capabilities. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been using PyOpenCL for some time and find it to be a solid and convenient OpenCL wrapper to use on the Host side with Python.
But lately, when I tried to employ the OpenCL SVM mechanism, for the purpose of making the code more efficient, I could not bring it to a properly working state, although it should have been a relatively simple procedure, and I tried it through multiple options.
While debugging I see it might be the case that although I am using the latest PyOpenCL version, the corresponding C OpenCL version being called by the wrapper is not the latest one.
Firstly, the C OpenCL often “complains” that it does recognize some methods and/or parameters, wherein AFAIK it should have recognized those at least in the latest versions of OpenCL.
Moreover, when I look at the “device” variable under the debugger the <opencl_c_version> attribute shows 'OpenCL C 1.2 ', while the device is fairly new, and it shows OpenCL 3.0 CUDA for its device side version. Under the attribute <opencl_c_all_version> I see a list of 4 different version numbers, where <numeric_version > depicts the lowest of these numbers which is 12582912.
Can it be indeed the case, that an older C OPENCL version was attached to PyOpenCL wrapper? if so, how can I change this setting to a new C OPENCL version?
Any help in this subject would be very much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions