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

common/gpu/intel/opencl: add opencl

Open Kiskae opened this issue 1 year ago • 4 comments

Description of changes

Updates intel libraries as per https://github.com/NixOS/nixpkgs/pull/205648 Adds module for intel opencl currently only supporting GPU

It is possible to add CPU OpenCL support, but only using an older version of the driver: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=intel-opencl-runtime

Things done
  • [ ] Tested the changes in your own NixOS Configuration
  • [x] Tested the changes end-to-end by using your fork of nixos-hardware and importing it via <nixos-hardware> or Flake input

Kiskae avatar Mar 04 '23 15:03 Kiskae

The intel-ocl package is unfree and not required for newer processors, should it be gated behind an unfree/legacy option?

Kiskae avatar Mar 04 '23 22:03 Kiskae

The intel-ocl package is unfree and not required for newer processors, should it be gated behind an unfree/legacy option?

How old? hardware.enableRedistributableFirmware could be used potentially used if the license allows for redistribution.

Mic92 avatar Mar 05 '23 08:03 Mic92

Potentially makes sense to have the opencl option in nixos itself: https://github.com/NixOS/nixpkgs/pull/219657

Mic92 avatar Mar 05 '23 09:03 Mic92

The intel-ocl package is unfree and not required for newer processors, should it be gated behind an unfree/legacy option?

How old? hardware.enableRedistributableFirmware could be used potentially used if the license allows for redistribution.

Both the intel-media-driver and intel-compute-runtime support starts with Broadwell, aka 5th gen intel and newer. The licence does not include any provisions for redistribution.

In addition I realized that intel-ocl is a very old version of the CPU OpenCL driver. It also includes a GPU driver but that isn't actually packaged correctly.

Kiskae avatar Mar 05 '23 14:03 Kiskae