rename intel-computer-runtime-legacy to -legacy1

This commit is contained in:
fleaz 2024-12-30 12:38:29 +01:00
parent 6f611a089e
commit 7fc544758f
4 changed files with 49 additions and 20 deletions

View file

@ -22,7 +22,7 @@ self: super: {
netrw-nvim = super.callPackage ./netrw-nvim { }; netrw-nvim = super.callPackage ./netrw-nvim { };
}); });
salt-lint = super.callPackage ./salt-lint { }; salt-lint = super.callPackage ./salt-lint { };
intel-compute-runtime-legacy = super.callPackage ./intel-compute-runtime-legacy { }; intel-compute-runtime-legacy1 = super.callPackage ./intel-compute-runtime-legacy1 { };
nerdfonts = super.nerdfonts.override { nerdfonts = super.nerdfonts.override {
fonts = [ fonts = [

View file

@ -45,7 +45,7 @@
netrw-nvim = prev.callPackage ./netrw-nvim { }; netrw-nvim = prev.callPackage ./netrw-nvim { };
}); });
salt-lint = prev.callPackage ./salt-lint { }; salt-lint = prev.callPackage ./salt-lint { };
intel-compute-runtime-legacy = prev.callPackage ./intel-compute-runtime-legacy { }; intel-compute-runtime-legacy1 = prev.callPackage ./intel-compute-runtime-legacy1 { };
}; };
}; };
} }

View file

@ -1,17 +1,23 @@
{ lib {
, stdenv lib,
, fetchFromGitHub stdenv,
, cmake fetchFromGitHub,
, pkg-config cmake,
, intel-gmmlib pkg-config,
, intel-graphics-compiler intel-gmmlib,
, level-zero intel-graphics-compiler,
, libva level-zero,
libva,
gitUpdater,
}: }:
let
inherit (lib) cmakeBool;
in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "intel-compute-runtime-legacy"; # https://github.com/intel/compute-runtime/blob/master/LEGACY_PLATFORMS.md
version = "24.35.30872.32"; pname = "intel-compute-runtime-legacy1";
version = "24.35.30872.32"; # 24.35.30872.x is the last series to support Gen8, Gen9 and Gen11 GPU support
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "intel"; owner = "intel";
@ -20,9 +26,17 @@ stdenv.mkDerivation rec {
hash = "sha256-POImMopbrhVXuSx2MQ9mwPNKQx7BljyikKhu6M4hZME="; hash = "sha256-POImMopbrhVXuSx2MQ9mwPNKQx7BljyikKhu6M4hZME=";
}; };
nativeBuildInputs = [ cmake pkg-config ]; nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [ intel-gmmlib intel-graphics-compiler libva level-zero ]; buildInputs = [
intel-gmmlib
intel-graphics-compiler
libva
level-zero
];
cmakeFlags = [ cmakeFlags = [
"-DSKIP_UNIT_TESTS=1" "-DSKIP_UNIT_TESTS=1"
@ -30,9 +44,13 @@ stdenv.mkDerivation rec {
"-DOCL_ICD_VENDORDIR=${placeholder "out"}/etc/OpenCL/vendors" "-DOCL_ICD_VENDORDIR=${placeholder "out"}/etc/OpenCL/vendors"
# The install script assumes this path is relative to CMAKE_INSTALL_PREFIX # The install script assumes this path is relative to CMAKE_INSTALL_PREFIX
"-DCMAKE_INSTALL_LIBDIR=lib" "-DCMAKE_INSTALL_LIBDIR=lib"
(cmakeBool "NEO_LEGACY_PLATFORMS_SUPPORT" true)
]; ];
outputs = [ "out" "drivers" ]; outputs = [
"out"
"drivers"
];
# causes redefinition of _FORTIFY_SOURCE # causes redefinition of _FORTIFY_SOURCE
hardeningDisable = [ "fortify3" ]; hardeningDisable = [ "fortify3" ];
@ -46,17 +64,28 @@ stdenv.mkDerivation rec {
''; '';
postFixup = '' postFixup = ''
patchelf --set-rpath ${lib.makeLibraryPath [ intel-gmmlib intel-graphics-compiler libva stdenv.cc.cc.lib ]} \ patchelf --set-rpath ${
lib.makeLibraryPath [
intel-gmmlib
intel-graphics-compiler
libva
stdenv.cc.cc
]
} \
$out/lib/intel-opencl/libigdrcl.so $out/lib/intel-opencl/libigdrcl.so
''; '';
passthru.updateScript = gitUpdater {
rev-prefix = "24.35.30872.";
};
meta = with lib; { meta = with lib; {
description = "Legacy version of Intel Graphics Compute Runtime for OpenCL."; description = "Intel Graphics Compute Runtime for OpenCL with support for Gen8, Gen9 and Gen11 GPUs.d";
mainProgram = "ocloc"; mainProgram = "ocloc";
homepage = "https://github.com/intel/compute-runtime"; homepage = "https://github.com/intel/compute-runtime";
changelog = "https://github.com/intel/compute-runtime/releases/tag/${version}"; changelog = "https://github.com/intel/compute-runtime/releases/tag/${version}";
license = licenses.mit; license = licenses.mit;
platforms = [ "x86_64-linux" "aarch64-linux" ]; platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ fleaz ]; maintainers = with maintainers; [ fleaz ];
}; };
} }

View file

@ -6,6 +6,6 @@ let
in in
pkgs.mkShell { pkgs.mkShell {
buildInputs = with pkgs; [ buildInputs = with pkgs; [
intel-compute-runtime-legacy intel-compute-runtime-legacy1
]; ];
} }