intel-compute-runtime-legacy1: init at 24.35.30872.32 (#368848)

authored by Martin Weinelt and committed by GitHub 4010d94b 238b4078

+91
+91
pkgs/by-name/in/intel-compute-runtime-legacy1/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + cmake, 6 + pkg-config, 7 + intel-gmmlib, 8 + intel-graphics-compiler, 9 + level-zero, 10 + libva, 11 + gitUpdater, 12 + }: 13 + 14 + let 15 + inherit (lib) cmakeBool; 16 + in 17 + stdenv.mkDerivation rec { 18 + # https://github.com/intel/compute-runtime/blob/master/LEGACY_PLATFORMS.md 19 + pname = "intel-compute-runtime-legacy1"; 20 + version = "24.35.30872.32"; # 24.35.30872.x is the last series to support Gen8, Gen9 and Gen11 GPU support 21 + 22 + src = fetchFromGitHub { 23 + owner = "intel"; 24 + repo = "compute-runtime"; 25 + rev = version; 26 + hash = "sha256-POImMopbrhVXuSx2MQ9mwPNKQx7BljyikKhu6M4hZME="; 27 + }; 28 + 29 + nativeBuildInputs = [ 30 + cmake 31 + pkg-config 32 + ]; 33 + 34 + buildInputs = [ 35 + intel-gmmlib 36 + intel-graphics-compiler 37 + libva 38 + level-zero 39 + ]; 40 + 41 + cmakeFlags = [ 42 + "-DSKIP_UNIT_TESTS=1" 43 + "-DIGC_DIR=${intel-graphics-compiler}" 44 + "-DOCL_ICD_VENDORDIR=${placeholder "out"}/etc/OpenCL/vendors" 45 + # The install script assumes this path is relative to CMAKE_INSTALL_PREFIX 46 + "-DCMAKE_INSTALL_LIBDIR=lib" 47 + (cmakeBool "NEO_LEGACY_PLATFORMS_SUPPORT" true) 48 + ]; 49 + 50 + outputs = [ 51 + "out" 52 + "drivers" 53 + ]; 54 + 55 + # causes redefinition of _FORTIFY_SOURCE 56 + hardeningDisable = [ "fortify3" ]; 57 + 58 + postInstall = '' 59 + # Avoid clash with intel-ocl 60 + mv $out/etc/OpenCL/vendors/intel.icd $out/etc/OpenCL/vendors/intel-neo.icd 61 + 62 + mkdir -p $drivers/lib 63 + mv -t $drivers/lib $out/lib/libze_intel* 64 + ''; 65 + 66 + postFixup = '' 67 + patchelf --set-rpath ${ 68 + lib.makeLibraryPath [ 69 + intel-gmmlib 70 + intel-graphics-compiler 71 + libva 72 + stdenv.cc.cc 73 + ] 74 + } \ 75 + $out/lib/intel-opencl/libigdrcl.so 76 + ''; 77 + 78 + passthru.updateScript = gitUpdater { 79 + rev-prefix = "24.35.30872."; 80 + }; 81 + 82 + meta = with lib; { 83 + description = "Intel Graphics Compute Runtime for OpenCL with support for Gen8, Gen9 and Gen11 GPUs.d"; 84 + mainProgram = "ocloc"; 85 + homepage = "https://github.com/intel/compute-runtime"; 86 + changelog = "https://github.com/intel/compute-runtime/releases/tag/${version}"; 87 + license = licenses.mit; 88 + platforms = [ "x86_64-linux" ]; 89 + maintainers = with maintainers; [ fleaz ]; 90 + }; 91 + }