summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authoreugeneswalker <38933153+eugeneswalker@users.noreply.github.com>2022-02-10 15:39:40 -0800
committerGitHub <noreply@github.com>2022-02-10 15:39:40 -0800
commit8d8822f749f1fa86973122a735fb683bb37cfb89 (patch)
treee9b236410501d8ee73ee47e8a9250023b5cc6ebb /var
parent2fa6cd6d23a51d22ae9d651eaba822676d068d00 (diff)
downloadspack-8d8822f749f1fa86973122a735fb683bb37cfb89.tar.gz
spack-8d8822f749f1fa86973122a735fb683bb37cfb89.tar.bz2
spack-8d8822f749f1fa86973122a735fb683bb37cfb89.tar.xz
spack-8d8822f749f1fa86973122a735fb683bb37cfb89.zip
arborx +rocm: use hipcc and depend on rocthrust (#28875)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/arborx/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/arborx/package.py b/var/spack/repos/builtin/packages/arborx/package.py
index f461679c79..e617b59ee4 100644
--- a/var/spack/repos/builtin/packages/arborx/package.py
+++ b/var/spack/repos/builtin/packages/arborx/package.py
@@ -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 @@ class Arborx(CMakePackage):
# 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