2020-07-10 16:01:24 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, numactl
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rocm-thunk";
|
2020-12-01 06:39:37 +00:00
|
|
|
version = "3.10.0";
|
2020-07-10 16:01:24 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RadeonOpenCompute";
|
|
|
|
repo = "ROCT-Thunk-Interface";
|
|
|
|
rev = "rocm-${version}";
|
2020-12-01 06:39:37 +00:00
|
|
|
hash = "sha256-FLH+GHXA0zepbR1wPPSez/hx1hiG2kkCTneDKhJJRjU=";
|
2020-07-10 16:01:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|