mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
785ed480aa
rocminfo: standardize rocm-thunk: standardize rocm-opencl-icd: standardize rocclr: standardize rocm-device-libs: standardize rocm-comgr: standardize rocm-opencl-runtime: standardize rocm-runtime: standardize clang-ocl: standardize composable_kernel: standardize hipcub: standardize hipsparse: standardize miopengemm: standardize rccl: standardize rocfft: standardize rocprim: standardize rocsparse: standardize rocmlir: standardize rocrand: standardize tensile: standardize rocm-cmake: standardize rocm-smi: standardize miopen: standardize
27 lines
645 B
Nix
27 lines
645 B
Nix
{ lib
|
|
, stdenv
|
|
, callPackage
|
|
, rocm-opencl-runtime
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rocm-opencl-icd";
|
|
version = rocm-opencl-runtime.version;
|
|
|
|
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 { }; };
|
|
|
|
meta = with lib; {
|
|
description = "OpenCL ICD definition for AMD GPUs using the ROCm stack";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ lovesegfault ] ++ teams.rocm.members;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|