2020-07-18 16:06:22 +00:00
|
|
|
{ stdenv, rocm-opencl-runtime }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rocm-opencl-icd";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = rocm-opencl-runtime.version;
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/etc/OpenCL/vendors
|
|
|
|
echo "${rocm-opencl-runtime}/lib/libamdocl64.so" > $out/etc/OpenCL/vendors/amdocl64.icd
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "OpenCL ICD definition for AMD GPUs using the ROCm stack";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ danieldk ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|