···
8
+
intel-graphics-compiler,
15
+
inherit (lib) cmakeBool;
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
22
+
src = fetchFromGitHub {
24
+
repo = "compute-runtime";
26
+
hash = "sha256-POImMopbrhVXuSx2MQ9mwPNKQx7BljyikKhu6M4hZME=";
29
+
nativeBuildInputs = [
36
+
intel-graphics-compiler
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)
55
+
# causes redefinition of _FORTIFY_SOURCE
56
+
hardeningDisable = [ "fortify3" ];
59
+
# Avoid clash with intel-ocl
60
+
mv $out/etc/OpenCL/vendors/intel.icd $out/etc/OpenCL/vendors/intel-neo.icd
62
+
mkdir -p $drivers/lib
63
+
mv -t $drivers/lib $out/lib/libze_intel*
67
+
patchelf --set-rpath ${
68
+
lib.makeLibraryPath [
70
+
intel-graphics-compiler
75
+
$out/lib/intel-opencl/libigdrcl.so
78
+
passthru.updateScript = gitUpdater {
79
+
rev-prefix = "24.35.30872.";
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 ];