From d668dea97d06289988c54e8cbc879074c83e74ca Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Fri, 4 Feb 2022 10:59:47 -0800 Subject: WarpX/HiPACE: noacc PSATD also needs FFTW (#28756) Forgot to add that `compute=noacc` also needs FFTW3 for PSATD builds. --- var/spack/repos/builtin/packages/hipace/package.py | 4 ++++ var/spack/repos/builtin/packages/warpx/package.py | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/var/spack/repos/builtin/packages/hipace/package.py b/var/spack/repos/builtin/packages/hipace/package.py index d90fa64b1a..c0dd7b84dc 100644 --- a/var/spack/repos/builtin/packages/hipace/package.py +++ b/var/spack/repos/builtin/packages/hipace/package.py @@ -42,6 +42,10 @@ class Hipace(CMakePackage): depends_on('openpmd-api@0.14.2:') depends_on('openpmd-api ~mpi', when='~mpi') depends_on('openpmd-api +mpi', when='+mpi') + with when('compute=noacc'): + depends_on('fftw@3: ~mpi', when='~mpi') + depends_on('fftw@3: +mpi', when='+mpi') + depends_on('pkgconfig', type='build') with when('compute=omp'): depends_on('fftw@3: +openmp') depends_on('fftw ~mpi', when='~mpi') diff --git a/var/spack/repos/builtin/packages/warpx/package.py b/var/spack/repos/builtin/packages/warpx/package.py index e1c6f1a5e0..4ef95c7f7d 100644 --- a/var/spack/repos/builtin/packages/warpx/package.py +++ b/var/spack/repos/builtin/packages/warpx/package.py @@ -95,6 +95,11 @@ class Warpx(CMakePackage): depends_on('rocfft', when='+psatd') depends_on('rocprim') depends_on('rocrand') + with when('compute=noacc'): + with when('+psatd'): + depends_on('fftw@3: ~mpi', when='~mpi') + depends_on('fftw@3: +mpi', when='+mpi') + depends_on('pkgconfig', type='build') with when('compute=omp'): depends_on('llvm-openmp', when='%apple-clang') with when('+psatd'): -- cgit v1.2.3-70-g09d2