summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralbestro <9337627+albestro@users.noreply.github.com>2019-11-19 20:49:32 +0100
committerAxel Huebl <axel.huebl@plasma.ninja>2019-11-19 12:49:32 -0700
commitf25a4ab089fc84d88d4bbd2180f1ed0e43c6f096 (patch)
tree8ecc15dd1dd8edbebe6359de7ce77ade8850d2c8
parentd00be588e35f8efb20d3c271d39070305dfbd431 (diff)
downloadspack-f25a4ab089fc84d88d4bbd2180f1ed0e43c6f096.tar.gz
spack-f25a4ab089fc84d88d4bbd2180f1ed0e43c6f096.tar.bz2
spack-f25a4ab089fc84d88d4bbd2180f1ed0e43c6f096.tar.xz
spack-f25a4ab089fc84d88d4bbd2180f1ed0e43c6f096.zip
add MAX_CPU_COUNT variant to HPX package (#13769)
* add MAX_CPU_COUNT variant to HPX package * compatibility with python2 * correct variant description Co-Authored-By: Mikael Simberg <mikael.simberg@iki.fi> * add maintainers list
-rw-r--r--var/spack/repos/builtin/packages/hpx/package.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hpx/package.py b/var/spack/repos/builtin/packages/hpx/package.py
index d02ff24b09..7d78de081c 100644
--- a/var/spack/repos/builtin/packages/hpx/package.py
+++ b/var/spack/repos/builtin/packages/hpx/package.py
@@ -12,6 +12,7 @@ class Hpx(CMakePackage, CudaPackage):
homepage = "http://stellar.cct.lsu.edu/tag/hpx/"
url = "https://github.com/STEllAR-GROUP/hpx/archive/1.2.1.tar.gz"
+ maintainers = ['msimberg', 'albestro']
version('master', git='https://github.com/STEllAR-GROUP/hpx.git', branch='master')
version('1.3.0', sha256='cd34da674064c4cc4a331402edbd65c5a1f8058fb46003314ca18fa08423c5ad')
@@ -30,6 +31,10 @@ class Hpx(CMakePackage, CudaPackage):
values=('system', 'tcmalloc', 'jemalloc', 'tbbmalloc')
)
+ variant('max_cpu_count', default='64',
+ description='Max number of OS-threads for HPX applications',
+ values=lambda x: isinstance(x, str) and x.isdigit())
+
variant('instrumentation', values=any_combination_of(
'apex', 'google_perftools', 'papi', 'valgrind'
), description='Add support for various kind of instrumentation')
@@ -129,6 +134,11 @@ class Hpx(CMakePackage, CudaPackage):
'ON' if '+tools' in spec else 'OFF'
))
+ # MAX_CPU_COUNT
+ args.append('-DHPX_WITH_MAX_CPU_COUNT={0}'.format(
+ spec.variants['max_cpu_count'].value
+ ))
+
# Examples
args.append('-DHPX_WITH_EXAMPLES={0}'.format(
'ON' if '+examples' in spec else 'OFF'