7 , intel-graphics-compiler
12 stdenv.mkDerivation rec {
13 pname = "intel-compute-runtime";
14 version = "24.39.31294.12";
16 src = fetchFromGitHub {
18 repo = "compute-runtime";
20 hash = "sha256-7GNtAo20DgxAxYSPt6Nh92nuuaS9tzsQGH+sLnsvBKU=";
23 nativeBuildInputs = [ cmake pkg-config ];
25 buildInputs = [ intel-gmmlib intel-graphics-compiler libva level-zero ];
29 "-DIGC_DIR=${intel-graphics-compiler}"
30 "-DOCL_ICD_VENDORDIR=${placeholder "out"}/etc/OpenCL/vendors"
31 # The install script assumes this path is relative to CMAKE_INSTALL_PREFIX
32 "-DCMAKE_INSTALL_LIBDIR=lib"
35 outputs = [ "out" "drivers" ];
37 # causes redefinition of _FORTIFY_SOURCE
38 hardeningDisable = [ "fortify3" ];
41 # Avoid clash with intel-ocl
42 mv $out/etc/OpenCL/vendors/intel.icd $out/etc/OpenCL/vendors/intel-neo.icd
45 mv -t $drivers/lib $out/lib/libze_intel*
49 patchelf --set-rpath ${lib.makeLibraryPath [ intel-gmmlib intel-graphics-compiler libva stdenv.cc.cc ]} \
50 $out/lib/intel-opencl/libigdrcl.so
54 description = "Intel Graphics Compute Runtime for OpenCL. Replaces Beignet for Gen8 (Broadwell) and beyond";
55 mainProgram = "ocloc";
56 homepage = "https://github.com/intel/compute-runtime";
57 changelog = "https://github.com/intel/compute-runtime/releases/tag/${version}";
58 license = licenses.mit;
59 platforms = [ "x86_64-linux" "aarch64-linux" ];
60 maintainers = with maintainers; [ SuperSandro2000 ];