rocm-thunk: init at 3.5.0

This commit is contained in:
Daniël de Kok 2020-07-10 17:01:24 +02:00
parent 3dd18f05e5
commit 466d74c4ba
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ stdenv
, fetchFromGitHub
, cmake
, pkg-config
, numactl
}:
stdenv.mkDerivation rec {
pname = "rocm-thunk";
version = "3.5.0";
src = fetchFromGitHub {
owner = "RadeonOpenCompute";
repo = "ROCT-Thunk-Interface";
rev = "rocm-${version}";
sha256 = "0xn1z0xc3phjc9vabwxgph5any4ffhc8wgs5yb15m5wpg87l8x1z";
};
preConfigure = ''
export cmakeFlags="$cmakeFlags "
'';
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ numactl ];
postInstall = ''
cp -r $src/include $out
'';
meta = with stdenv.lib; {
description = "Radeon open compute thunk interface";
homepage = "https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface";
license = with licenses; [ bsd2 mit ];
maintainers = with maintainers; [ danieldk ];
};
}

View File

@ -9233,6 +9233,8 @@ in
rgbds = callPackage ../development/compilers/rgbds { };
rocm-thunk = callPackage ../development/libraries/rocm-thunk { };
rtags = callPackage ../development/tools/rtags {
inherit (darwin) apple_sdk;
};