WarpX & HiPACE++: Constrain FFTW for No-MPI (#27043)

Contrain FFTW for no-MPI to simplify builds and logic to handle.
This commit is contained in:
Axel Huebl 2021-10-29 00:19:23 -07:00 committed by GitHub
parent 7a6a232730
commit 5a7496eb82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -44,6 +44,7 @@ class Hipace(CMakePackage):
depends_on('openpmd-api +mpi', when='+mpi') depends_on('openpmd-api +mpi', when='+mpi')
with when('compute=omp'): with when('compute=omp'):
depends_on('fftw@3: +openmp') depends_on('fftw@3: +openmp')
depends_on('fftw ~mpi', when='~mpi')
depends_on('fftw +mpi', when='+mpi') depends_on('fftw +mpi', when='+mpi')
depends_on('pkgconfig', type='build') depends_on('pkgconfig', type='build')
depends_on('llvm-openmp', when='%apple-clang') depends_on('llvm-openmp', when='%apple-clang')

View file

@ -90,6 +90,7 @@ class Warpx(CMakePackage):
depends_on('blaspp +cuda', when='compute=cuda') depends_on('blaspp +cuda', when='compute=cuda')
with when('+psatd compute=omp'): with when('+psatd compute=omp'):
depends_on('fftw@3: +openmp') depends_on('fftw@3: +openmp')
depends_on('fftw ~mpi', when='~mpi')
depends_on('fftw +mpi', when='+mpi') depends_on('fftw +mpi', when='+mpi')
depends_on('pkgconfig', type='build') depends_on('pkgconfig', type='build')
with when('+openpmd'): with when('+openpmd'):