lammps: choose FFT implementation based on provider (#19060)

This commit is contained in:
Sajid Ali 2020-10-02 15:53:50 -05:00 committed by GitHub
parent 3052e003e0
commit 9ba83e6cc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,7 +89,7 @@ def url_for_version(self, version):
depends_on('mpi', when='+mpi')
depends_on('mpi', when='+mpiio')
depends_on('fftw', when='+kspace')
depends_on('fftw-api@3', when='+kspace')
depends_on('voropp+pic', when='+voronoi')
depends_on('netcdf-c+mpi', when='+user-netcdf')
depends_on('blas', when='+user-atc')
@ -182,7 +182,10 @@ def cmake_args(self):
else:
args.append('{0}=OFF'.format(opt))
if '+kspace' in spec:
args.append('-DFFT=FFTW3')
if '^fftw' in spec:
args.append('-DFFT=FFTW3')
if '^mkl' in spec:
args.append('-DFFT=MKL')
if '+kokkos' in spec:
args.append('-DEXTERNAL_KOKKOS=ON')