summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorThomas Gruber <Thomas.Roehl@fau.de>2020-12-16 23:17:37 +0100
committerGitHub <noreply@github.com>2020-12-16 14:17:37 -0800
commit2bb911621921b8de5bdba76a8924f3cb4898b510 (patch)
tree95564fcdf5e6956d881c30f1e2299f63205da051 /var
parent046e3fcae340797ce4288b99adb30c4431668420 (diff)
downloadspack-2bb911621921b8de5bdba76a8924f3cb4898b510.tar.gz
spack-2bb911621921b8de5bdba76a8924f3cb4898b510.tar.bz2
spack-2bb911621921b8de5bdba76a8924f3cb4898b510.tar.xz
spack-2bb911621921b8de5bdba76a8924f3cb4898b510.zip
pylikwid: New recipe (#20408)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-pylikwid/package.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-pylikwid/package.py b/var/spack/repos/builtin/packages/py-pylikwid/package.py
new file mode 100644
index 0000000000..9ea083e178
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-pylikwid/package.py
@@ -0,0 +1,31 @@
+# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class PyPylikwid(PythonPackage):
+ """Python interface to the LIKWID tools library with calls for system
+ topology, process/thread affinity, hardware performance monitoring
+ and the manipulation of system features like frequencies and
+ prefetchers."""
+
+ homepage = "https://github.com/RRZE-HPC/pylikwid"
+ url = "https://pypi.io/packages/source/p/pylikwid/pylikwid-0.4.0.tar.gz"
+ git = "https://github.com/RRZE-HPC/pylikwid.git"
+
+ maintainers = ['TomTheBear']
+
+ version('0.4.0', sha256='f7894a6d7ebcea7da133ef639599a314f850f55cd6c5ffdd630bb879bd2aa0b8')
+
+ variant('cuda',
+ default=False,
+ description='with Nvidia GPU profiling support')
+
+ depends_on('likwid', when='~cuda')
+ depends_on('likwid+cuda', when='+cuda')
+
+ def setup_build_environment(self, env):
+ env.set('LIKWID_PREFIX', self.spec['likwid'].prefix)