Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
837 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
fetchFromGitHub,
rocmPackages,
cmake,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "rocm-bandwidth-test";
version = "6.3.3";
src = fetchFromGitHub {
owner = "ROCm";
repo = "rocm_bandwidth_test";
rev = "rocm-${finalAttrs.version}";
hash = "sha256-dHyfYpRB13wUvim152nZ61McZOQ1zUZFx4dUo2vVqZM=";
};
nativeBuildInputs = [
cmake
];
buildInputs = [ rocmPackages.rocm-runtime ];
cmakeFlags = [
"-DROCT_INC_DIR=${rocmPackages.rocm-runtime}/include/libhsakmt"
];
meta = with lib; {
description = "Bandwidth test for AMD GPUs supported by ROCm";
homepage = "https://github.com/ROCm/rocm_bandwidth_test";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fangpen ];
teams = [ teams.rocm ];
platforms = [ "x86_64-linux" ];
};
})