arborx: update v0.8-beta to v0.8-beta2 (#13143)
- Require Kokkos with c++14 - Update the case of CMake options
This commit is contained in:
parent
ce5333c1fd
commit
41e7e5693e
@ -10,11 +10,11 @@ class Arborx(CMakePackage):
|
||||
"""ArborX is a performance-portable library for geometric search"""
|
||||
|
||||
homepage = "http://github.com/arborx/arborx"
|
||||
url = "https://github.com/arborx/arborx/archive/v0.8-beta.tar.gz"
|
||||
url = "https://github.com/arborx/arborx/archive/v0.8-beta2.tar.gz"
|
||||
git = "https://github.com/arborx/arborx.git"
|
||||
|
||||
version('master', branch='master')
|
||||
version('0.8-beta', sha256='d90254656df089b1321bf26d55f69d0db465fff12a972c446562ceaca5f090ad')
|
||||
version('0.8-beta2', sha256='e68733bc77fbb84313f3ff059f746fa79ab2ffe24a0a391126eefa47ec4fd2df')
|
||||
|
||||
variant('cuda', default=False, description='enable Cuda backend')
|
||||
variant('openmp', default=False, description='enable OpenMP backend')
|
||||
@ -28,18 +28,19 @@ class Arborx(CMakePackage):
|
||||
# ArborX relies on Kokkos to provide devices, thus having one-to-one match
|
||||
# The only way to disable those devices is to make sure Kokkos does not
|
||||
# provide them
|
||||
depends_on('kokkos@2.7.00:+cuda+enable_lambda', when='+cuda')
|
||||
depends_on('kokkos@2.7.00:+openmp', when='+openmp')
|
||||
depends_on('kokkos@2.7.00:+serial', when='+serial')
|
||||
depends_on('kokkos@2.7.00:+cuda+enable_lambda cxxstd=c++14', when='+cuda')
|
||||
depends_on('kokkos@2.7.00:+openmp cxxstd=c++14', when='+openmp')
|
||||
depends_on('kokkos@2.7.00:+serial cxxstd=c++14', when='+serial')
|
||||
|
||||
def cmake_args(self):
|
||||
spec = self.spec
|
||||
|
||||
options = [
|
||||
'-DCMAKE_PREFIX_PATH=%s' % spec['kokkos'].prefix,
|
||||
'-DArborX_ENABLE_TESTS=OFF',
|
||||
'-DArborX_ENABLE_EXAMPLES=OFF',
|
||||
'-DArborX_ENABLE_MPI=%s' % ('ON' if '+mpi' in spec else 'OFF')
|
||||
'-DARBORX_ENABLE_TESTS=OFF',
|
||||
'-DARBORX_ENABLE_EXAMPLES=OFF',
|
||||
'-DARBORX_ENABLE_BENCHMARKS=OFF',
|
||||
'-DARBORX_ENABLE_MPI=%s' % ('ON' if '+mpi' in spec else 'OFF')
|
||||
]
|
||||
|
||||
if '+cuda' in spec:
|
||||
|
Loading…
Reference in New Issue
Block a user