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
This commit is contained in:
parent
d00be588e3
commit
f25a4ab089
1 changed files with 10 additions and 0 deletions
|
@ -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 @@ def cmake_args(self):
|
|||
'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'
|
||||
|
|
Loading…
Reference in a new issue