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

Older/legacy Intel GPU OpenCL support #1351

Open
Mynacol opened this issue Jan 30, 2025 · 2 comments
Open

Older/legacy Intel GPU OpenCL support #1351

Mynacol opened this issue Jan 30, 2025 · 2 comments

Comments

@Mynacol
Copy link

Mynacol commented Jan 30, 2025

Hi, I tried to use OpenCL, but noticed that my Lenovo Thinkpad T480 was seemingly missing the required libraries despite importing its profile. clinfo is returning zero platforms.

Then I realized this affects all "legacy platforms" that try to use the intel-compute-runtime, i.e. Gen 8, 9 and 11 Intel cores. They instead have to use intel-compute-runtime-legacy1. With that I get an expected clinfo output.
I propose a new option in the common intel gpu configuration to switch between those. Installing them side-by-side is not possible due to a file conflict. Specific hardware profiles then should set it correctly to get either of those packages.


P.S.: The T480 profile should set hardware.intelgpu.vaapiDriver = "intel-media-driver";.

@Mic92
Copy link
Member

Mic92 commented Feb 1, 2025

All you need to do is to include the correct intel generation here:

../../../common/cpu/intel

We already have abstraction for it:

https://github.com/NixOS/nixos-hardware/blob/master/common/cpu/intel/tiger-lake/default.nix
https://github.com/NixOS/nixos-hardware/blob/master/common/gpu/intel/tiger-lake/default.nix

@Mynacol
Copy link
Author

Mynacol commented Feb 1, 2025

I see no mention of intel-compute-runtime-legacy1 anywhere in this repo. There are abstractions for different Intel CPU/GPU generations, but all import intel-compute-runtime, which doesn't work on older generations. I repeat that my use case is OpenCL, the other stuff like OpenGL, Vulkan, VAAPI works already.
This means the appropriate Intel generations should get this version of intel-compute-runtime, which requires a bit of refactoring I fear. Additionally, the Thinkpad T480 profile should add the correct generation, which is made difficult because it was released with two different Intel generations of CPUs (7th + 8th).

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