WarpX/HiPACE: noacc PSATD also needs FFTW (#28756)

Forgot to add that `compute=noacc` also needs FFTW3 for PSATD builds.
This commit is contained in:
Axel Huebl 2022-02-04 10:59:47 -08:00 committed by GitHub
parent 45a285a751
commit d668dea97d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -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')

View File

@ -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'):