nixos-hardware icon indicating copy to clipboard operation
nixos-hardware copied to clipboard

Older/legacy Intel GPU OpenCL support

Open Mynacol opened this issue 9 months ago • 8 comments

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";.

Mynacol avatar Jan 30 '25 13:01 Mynacol