forked from mirrors/nixpkgs
rocr-debug-agent: init at 5.4.1
This commit is contained in:
parent
1564b18973
commit
210fe0ffaa
61
pkgs/development/libraries/rocr-debug-agent/default.nix
Normal file
61
pkgs/development/libraries/rocr-debug-agent/default.nix
Normal file
|
@ -0,0 +1,61 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, rocmUpdateScript
|
||||
, cmake
|
||||
, hip
|
||||
, git
|
||||
, rocdbgapi
|
||||
, rocm-runtime
|
||||
, elfutils
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "rocr-debug-agent";
|
||||
version = "5.4.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ROCm-Developer-Tools";
|
||||
repo = "rocr_debug_agent";
|
||||
rev = "rocm-${finalAttrs.version}";
|
||||
hash = "sha256-5l6svWSWCxVoyr1zJabxbt5rXQMtdZtHrf9gS2PcRKc=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
hip
|
||||
git
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
rocdbgapi
|
||||
rocm-runtime
|
||||
elfutils
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DCMAKE_MODULE_PATH=${hip}/lib/cmake/hip"
|
||||
"-DHIP_ROOT_DIR=${hip}"
|
||||
"-DHIP_PATH=${hip}"
|
||||
];
|
||||
|
||||
# Weird install target
|
||||
postInstall = ''
|
||||
rm -rf $out/src
|
||||
'';
|
||||
|
||||
passthru.updateScript = rocmUpdateScript {
|
||||
name = finalAttrs.pname;
|
||||
owner = finalAttrs.src.owner;
|
||||
repo = finalAttrs.src.repo;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library that provides some debugging functionality for ROCr";
|
||||
homepage = "https://github.com/ROCm-Developer-Tools/rocr_debug_agent";
|
||||
license = with licenses; [ ncsa ];
|
||||
maintainers = teams.rocm.members;
|
||||
platforms = platforms.linux;
|
||||
broken = finalAttrs.version != hip.version;
|
||||
};
|
||||
})
|
|
@ -15385,6 +15385,10 @@ with pkgs;
|
|||
stdenv = rocmClangStdenv;
|
||||
};
|
||||
|
||||
rocr-debug-agent = callPackage ../development/libraries/rocr-debug-agent {
|
||||
stdenv = rocmClangStdenv;
|
||||
};
|
||||
|
||||
rocmlir-rock = rocmlir.override {
|
||||
buildRockCompiler = true;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue