Merge pull request #93331 from danieldk/rocm-smi
rocm-smi: init at 3.5.0
This commit is contained in:
commit
5e95e2e763
2 changed files with 33 additions and 0 deletions
30
pkgs/tools/system/rocm-smi/default.nix
Normal file
30
pkgs/tools/system/rocm-smi/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ lib, buildPythonApplication, fetchFromGitHub }:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "rocm-smi";
|
||||
version = "3.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "RadeonOpenCompute";
|
||||
repo = "ROC-smi";
|
||||
rev = "rocm-${version}";
|
||||
sha256 = "189mpvmcv46nfwshyc1wla6k71kbraldik5an20g4v9s13ycrpx9";
|
||||
};
|
||||
|
||||
format = "other";
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
install -Dm0755 rocm_smi.py $out/bin/rocm-smi
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "System management interface for AMD GPUs supported by ROCm";
|
||||
homepage = "https://github.com/RadeonOpenCompute/ROC-smi";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ danieldk ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
|
@ -9286,6 +9286,9 @@ in
|
|||
|
||||
rocm-runtime-ext = callPackage ../development/libraries/rocm-runtime-ext { };
|
||||
|
||||
# Python >= 3.8 still gives a bunch of warnings.
|
||||
rocm-smi = python37.pkgs.callPackage ../tools/system/rocm-smi { };
|
||||
|
||||
rocm-thunk = callPackage ../development/libraries/rocm-thunk { };
|
||||
|
||||
rtags = callPackage ../development/tools/rtags {
|
||||
|
|
Loading…
Reference in a new issue