mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
rocm-opencl-icd: init at 3.5.0
This commit is contained in:
parent
c0eec29dfb
commit
d5e6acfe28
20
pkgs/development/libraries/rocm-opencl-icd/default.nix
Normal file
20
pkgs/development/libraries/rocm-opencl-icd/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
@ -9250,6 +9250,8 @@ in
|
|||||||
inherit (llvmPackages_rocm) clang clang-unwrapped lld llvm;
|
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 {
|
rocm-opencl-runtime = callPackage ../development/libraries/rocm-opencl-runtime {
|
||||||
stdenv = overrideCC stdenv llvmPackages_rocm.clang;
|
stdenv = overrideCC stdenv llvmPackages_rocm.clang;
|
||||||
inherit (llvmPackages_rocm) clang clang-unwrapped lld llvm;
|
inherit (llvmPackages_rocm) clang clang-unwrapped lld llvm;
|
||||||
|
Loading…
Reference in New Issue
Block a user