1 { lib, stdenv, rocm-opencl-runtime }:
3 stdenv.mkDerivation rec {
4 pname = "rocm-opencl-icd";
5 version = rocm-opencl-runtime.version;
10 mkdir -p $out/etc/OpenCL/vendors
11 echo "${rocm-opencl-runtime}/lib/libamdocl64.so" > $out/etc/OpenCL/vendors/amdocl64.icd
15 description = "OpenCL ICD definition for AMD GPUs using the ROCm stack";
16 license = licenses.mit;
17 maintainers = with maintainers; [ lovesegfault ];
18 platforms = platforms.linux;