2020-07-18 16:06:22 +00:00
|
|
|
{ lib, buildPythonApplication, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "rocm-smi";
|
2020-12-25 13:55:36 +00:00
|
|
|
version = "4.0.0";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RadeonOpenCompute";
|
|
|
|
repo = "ROC-smi";
|
|
|
|
rev = "rocm-${version}";
|
2020-12-03 08:41:04 +00:00
|
|
|
hash = "sha256-0QqaBMkqRVEl89x3hvWQGAgt7LbtMZPhuf7KenQYHaQ=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|