rocm-opencl-icd: init at 3.5.0

This commit is contained in:
Daniël de Kok 2020-07-10 20:52:44 +02:00
parent c0eec29dfb
commit d5e6acfe28
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,20 @@
{ stdenv, rocm-opencl-runtime }:
stdenv.mkDerivation rec {
pname = "rocm-opencl-icd";
version = "3.5.0";
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;
};
}

View File

@ -9250,6 +9250,8 @@ in
inherit (llvmPackages_rocm) clang clang-unwrapped lld llvm;
};
rocm-opencl-icd = callPackage ../development/libraries/rocm-opencl-icd { };
rocm-opencl-runtime = callPackage ../development/libraries/rocm-opencl-runtime {
stdenv = overrideCC stdenv llvmPackages_rocm.clang;
inherit (llvmPackages_rocm) clang clang-unwrapped lld llvm;