nixpkgs/pkgs/development/libraries/rocm-opencl-icd/default.nix

27 lines
645 B
Nix
Raw Normal View History

{ lib
, stdenv
, callPackage
, rocm-opencl-runtime
}:
2020-07-10 18:52:44 +00:00
stdenv.mkDerivation rec {
pname = "rocm-opencl-icd";
version = rocm-opencl-runtime.version;
2020-07-10 18:52:44 +00:00
dontUnpack = true;
installPhase = ''
mkdir -p $out/etc/OpenCL/vendors
echo "${rocm-opencl-runtime}/lib/libamdocl64.so" > $out/etc/OpenCL/vendors/amdocl64.icd
'';
passthru.impureTests = { rocm-opencl = callPackage ./test.nix { }; };
2022-11-11 20:24:46 +00:00
meta = with lib; {
2020-07-10 18:52:44 +00:00
description = "OpenCL ICD definition for AMD GPUs using the ROCm stack";
license = licenses.mit;
maintainers = with maintainers; [ lovesegfault ] ++ teams.rocm.members;
2020-07-10 18:52:44 +00:00
platforms = platforms.linux;
};
}