summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcost2 <52476474+marcost2@users.noreply.github.com>2022-04-21 02:58:37 -0300
committerGitHub <noreply@github.com>2022-04-21 07:58:37 +0200
commit7ebce6191a7972dce6e4e66d93bbaa6a53639f27 (patch)
tree759f8b52d285466c5b51fb7708566c15ff926e1b
parent03832a0b0fb84b43bf9b86504cdb9e024e594f31 (diff)
downloadspack-7ebce6191a7972dce6e4e66d93bbaa6a53639f27.tar.gz
spack-7ebce6191a7972dce6e4e66d93bbaa6a53639f27.tar.bz2
spack-7ebce6191a7972dce6e4e66d93bbaa6a53639f27.tar.xz
spack-7ebce6191a7972dce6e4e66d93bbaa6a53639f27.zip
nvtop: add versions up to v2.0.1, rework package recipe (#30180)
-rw-r--r--var/spack/repos/builtin/packages/nvtop/package.py22
1 files changed, 16 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/nvtop/package.py b/var/spack/repos/builtin/packages/nvtop/package.py
index d9de5c2b3e..46901a300e 100644
--- a/var/spack/repos/builtin/packages/nvtop/package.py
+++ b/var/spack/repos/builtin/packages/nvtop/package.py
@@ -7,16 +7,26 @@ from spack import *
class Nvtop(CMakePackage, CudaPackage):
- """Nvtop stands for NVidia TOP, a (h)top like task monitor for NVIDIA GPUs.
- It can handle multiple GPUs and print information about them
- in a htop familiar way."""
+ """Nvtop stands for Neat Videocard TOP, a (h)top like task monitor
+ for AMD and NVIDIA GPUS. It can handle multiple GPUs and print
+ information about them in a htop familiar way"""
homepage = "https://github.com/Syllo/nvtop"
- url = "https://github.com/Syllo/nvtop/archive/1.1.0.tar.gz"
+ url = "https://github.com/Syllo/nvtop/archive/refs/tags/2.0.1.zip"
- version('1.1.0', sha256='00470cde8fc48d5a5ed7c96402607e474414d94b562b21189bdde1dbe6b1d1f3')
+ maintainers = ['marcost2']
+
+ version('2.0.1', sha256='ef18ce85d632eb1c22d3a3653976b2c088260039702df39fd0181f7cd3ae277d')
+ version('2.0.0', sha256='1651f34274c334a682f280dcb2f28d9642d44c7b22afe8c431cab91345b50f31')
+ version('1.2.2', sha256='543cbfdae3241fab1ea022402734c12e69d5988583193adaab69fdfae6e14c84')
+ version('1.2.1', sha256='197992cdd0e2e151fce91a7ba56f717e4d85b317c396001e8dbd84dc2ba363cd')
+
+ variant('support', values=('nvidia', 'amd'), default='nvidia,amd', multi=True,
+ description='Which GPU vendors to build support for')
depends_on('ncurses')
+ depends_on('libdrm', when='support=amd')
def cmake_args(self):
- return [self.define('NVML_RETRIEVE_HEADER_ONLINE', True)]
+ return [self.define('NVIDIA_SUPPORT', self.spec.satisfies('support=nvidia')),
+ self.define('AMDGPU_SUPPORT', self.spec.satisfies('support=amd'))]