Below changes were added to lammps recipe: (#20288)

1) amdfftw library support
 2) opt added in supported packages
This commit is contained in:
AMD Toolchain Support 2020-12-09 23:06:59 +05:30 committed by GitHub
parent af307d3120
commit 0b62b33d18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,7 @@ def url_for_version(self, version):
'qeq', 'replica', 'rigid', 'shock', 'snap', 'spin',
'srd', 'user-atc', 'user-h5md', 'user-lb',
'user-meamc', 'user-misc', 'user-netcdf', 'user-omp',
'user-reaxc', 'voronoi']
'user-reaxc', 'voronoi', 'opt']
for pkg in supported_packages:
variant(pkg, default=False,
@ -95,7 +95,6 @@ def url_for_version(self, version):
depends_on('blas', when='+user-atc')
depends_on('lapack', when='+user-atc')
depends_on('opencl', when='+opencl')
depends_on('latte@1.0.1', when='@:20180222+latte')
depends_on('latte@1.1.1:', when='@20180316:20180628+latte')
depends_on('latte@1.2.1:', when='@20180629:20200505+latte')
@ -186,6 +185,12 @@ def cmake_args(self):
args.append('-DFFT=FFTW3')
if '^mkl' in spec:
args.append('-DFFT=MKL')
if '^amdfftw' in spec:
fftw_prefix = spec['amdfftw'].prefix
args.append('-DFFTW_HOME={0}'.format(fftw_prefix))
args.append('-DFFTW_INCLUDE_DIRS={0}'
.format(fftw_prefix.include))
args.append('-DFFTW_LIBRARY_DIRS={0}'.format(fftw_prefix.lib))
if '+kokkos' in spec:
args.append('-DEXTERNAL_KOKKOS=ON')