b96e6f4393
GitOrigin-RevId: 20887e4bbfdae3aed6bfa1f53ddf138ee325515e
37 lines
772 B
Nix
37 lines
772 B
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, pkg-config
|
|
, numactl
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "rocm-thunk";
|
|
version = "4.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "RadeonOpenCompute";
|
|
repo = "ROCT-Thunk-Interface";
|
|
rev = "rocm-${version}";
|
|
hash = "sha256-gdto7BbrSRa3UiRNvTW1KLkHyjrcxdah4+L+1Gdm0wA=";
|
|
};
|
|
|
|
preConfigure = ''
|
|
export cmakeFlags="$cmakeFlags "
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ numactl ];
|
|
|
|
postInstall = ''
|
|
cp -r $src/include $out
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Radeon open compute thunk interface";
|
|
homepage = "https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface";
|
|
license = with licenses; [ bsd2 mit ];
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|