From 8d8822f749f1fa86973122a735fb683bb37cfb89 Mon Sep 17 00:00:00 2001 From: eugeneswalker <38933153+eugeneswalker@users.noreply.github.com> Date: Thu, 10 Feb 2022 15:39:40 -0800 Subject: arborx +rocm: use hipcc and depend on rocthrust (#28875) --- var/spack/repos/builtin/packages/arborx/package.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'var/spack/repos/builtin/packages/arborx/package.py') 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 -- cgit v1.2.3-60-g2f50