summaryrefslogtreecommitdiffstats
path: root/pkgs/tools
diff options
context:
space:
mode:
authorDaniël de Kok <me@danieldk.eu>2020-07-17 08:07:09 +0200
committerDaniël de Kok <me@danieldk.eu>2020-07-17 08:07:09 +0200
commita6d8e68610f56a433ba34fb9c61d1d63da472660 (patch)
tree5818669c12687c5054ec84affb394eb8c604c3ab /pkgs/tools
parentb5e5800a0bfc29c73085fb5324d235139cbb4ee1 (diff)
rocm-smi: init at 3.5.0
This utility reports information about AMD GPUs that are supported by the ROCm stack. It also exposes functionality for clock and temperature management.
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/system/rocm-smi/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/system/rocm-smi/default.nix b/pkgs/tools/system/rocm-smi/default.nix
new file mode 100644
index 000000000000..159b41fd1ce5
--- /dev/null
+++ b/pkgs/tools/system/rocm-smi/default.nix
@@ -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;
+ };
+}