arborx +rocm: use hipcc and depend on rocthrust (#28875)

This commit is contained in:
eugeneswalker 2022-02-10 15:39:40 -08:00 committed by GitHub
parent 2fa6cd6d23
commit 8d8822f749
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,7 @@ class Arborx(CMakePackage):
depends_on('cmake@3.12:', type='build')
depends_on('cmake@3.16:', type='build', when='@1.0:')
depends_on('mpi', when='+mpi')
depends_on('rocthrust', when='+rocm')
# Standalone Kokkos
depends_on('kokkos@3.1.00:', when='~trilinos')
@ -72,6 +73,9 @@ def cmake_args(self):
# Only Kokkos allows '+cuda' for now
options.append(
'-DCMAKE_CXX_COMPILER=%s' % spec["kokkos"].kokkos_cxx)
if '+rocm' in spec:
options.append(
'-DCMAKE_CXX_COMPILER=%s' % spec["hip"].hipcc)
return options