-
Notifications
You must be signed in to change notification settings - Fork 77
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
Problem loading OpenCL 2.0 on Intel i7 #59
Comments
So for starters yes, you may have some sort of issue with your ICD loader. You might be linking directly to an OpenCL 1.2 driver instead of your system-wide loader, which should include all installed platforms. Let me know which OS you're on and I'll point you in the right direction. If you're on Windows this could be related to the recently added build script and we'll need to improve that script if that's the case (we simply haven't had enough people use it yet). The HalffpConfig error is normal, it just means your driver doesn't support it. That error should probably be silenced or something. Additionally, there are various quirks with OpenCL 2.0+ on every platform I know of (AMD, NVIDIA, Intel, ARM) such as the version not displaying correctly but in this case I think we just need to tweak or fix how your library is being linked. |
I'm on ubuntu 14.04, more specifically: |
Ok so you need to relink your OpenCL loader if you want to use OpenCL 2.0+ features. There are a number of ways to configure this but you should have For troubleshooting purposes however, first locate your OpenCL 2.x library. It's probably in
This should link your Intel 2.x library as your system default (assuming you have no other custom ld stuff going on). Run the ocl If that works and you have no immediate need to use another device, leave it alone. If you want to set your libraries up properly to the system loader (which should be able to load all available platforms) I can help you sort that out. |
Ah it was quite a dumb mistake, I was just not looping trough the platforms (I assumed that the 2.0 was overwriting the previous) thus I was just listing the
|
One suggestion though. If you remember I was getting an error from the
And this pops up when you call |
Yeah I've been meaning to get to that... I actually wanted to do a detection of whether or not the device supports each particular feature before even requesting info for it but it remains on my very long list of things to get to. |
Ok so I tried the simple example of just listing my platform. Got some errors and other problems. So first on my system I've installed the Intel OpenCL 2.0 extension. When I do
clinfo
in terminal I get:Running the example for the platform in Rust gave me:
and for the device:
Additionally the HalffpConfig produced the error:
First is it intentional there is no option to loading the
2.0
version or potentially this might mean that my environment is not pointing to it correctly.Also any idea about the
HalfFpConfig
?The text was updated successfully, but these errors were encountered: