-
Notifications
You must be signed in to change notification settings - Fork 130
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
error: ‘getContextPlatformVersion’ is not a member of ‘cl::detail’ in some cases #108
Comments
I think your proposed fix is fine, but I wonder if the checks around @jrprice , do you have any input? It looks like you were involved in the PR that added these checks: #14 (comment). Thanks! |
Hi, I'm hitting the same problem, is there a fix already in master? |
It doesn't look like this has been fixed yet. @jrprice do you have a preferred fix? It looks like we could:
|
Sorry for taking so long to look at this.
I can't think of a reason to keep them, so I'd vote for this fix. |
Although the header file has been moved, this is still not fixed. |
Looking through old issues I thought this might have been fixed, but it looks like we still have a problem. The guard for #if CL_HPP_TARGET_OPENCL_VERSION >= 120 && CL_HPP_MINIMUM_OPENCL_VERSION < 120
But some of the places where it is used is guarded by: #if CL_HPP_TARGET_OPENCL_VERSION >= 200 && CL_HPP_MINIMUM_OPENCL_VERSION < 200
This means we'll generate an error when We should fix this. If we don't want to remove the guards around #if CL_HPP_TARGET_OPENCL_VERSION >= 120 && CL_HPP_MINIMUM_OPENCL_VERSION < 120
|
I got the error
error: ‘getContextPlatformVersion’ is not a member of ‘cl::detail’
when building my project:It seems that on line 7078 (and 7144, 7209, 7276, 7327 and 7378)
getContextPlatformVersion
is used in a#if
-block that is enabled ifCL_HPP_MINIMUM_OPENCL_VERSION
is less than 200:However, the (only) definition of
getContextPlatformVersion
(on line 1738) is only active ifCL_HPP_MINIMUM_OPENCL_VERSION
is less than 120 (checked at line 1700):The error should therefore always ocure if
CL_HPP_TARGET_OPENCL_VERSION
is 200 andCL_HPP_MINIMUM_OPENCL_VERSION
is 120.I could complile my project by changing that line (1700) to this:
But I don't know if that is the proper solution or if that would have other side effects, therefore I didn't create a pull request and instead created this issue...
The text was updated successfully, but these errors were encountered: