summary refs log blame commit diff
path: root/pkgs/development/libraries/rocm-opencl-icd/default.nix
blob: 0a9d124561e24e80781b4844a1d0f40a346c7858 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
                                     


                            
                                        







                                                                                           
                    

                                                                            
                                        


                                
{ lib, stdenv, 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
  '';

  meta = with lib; {
    description = "OpenCL ICD definition for AMD GPUs using the ROCm stack";
    license = licenses.mit;
    maintainers = with maintainers; [ ];
    platforms = platforms.linux;
  };
}