2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, rocm-opencl-runtime }:
|
2020-07-10 20:52:44 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rocm-opencl-icd";
|
2020-08-15 08:05:24 +02:00
|
|
|
version = rocm-opencl-runtime.version;
|
2020-07-10 20:52:44 +02:00
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/etc/OpenCL/vendors
|
|
|
|
echo "${rocm-opencl-runtime}/lib/libamdocl64.so" > $out/etc/OpenCL/vendors/amdocl64.icd
|
|
|
|
'';
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2020-07-10 20:52:44 +02:00
|
|
|
description = "OpenCL ICD definition for AMD GPUs using the ROCm stack";
|
|
|
|
license = licenses.mit;
|
2021-09-02 21:32:34 +02:00
|
|
|
maintainers = with maintainers; [ lovesegfault ];
|
2020-07-10 20:52:44 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|