easyconfigs-it4i/a/ABINIT/ABINIT-9.2.1-intel-2020a.eb
Lukáš Krupčík ec770847d2 new file: a/ABINIT/ABINIT-9.2.1-foss-2020a.eb
new file:   a/ABINIT/ABINIT-9.2.1-intel-2020a.eb
2020-11-03 14:46:21 +01:00

49 lines
1.8 KiB
Plaintext

# IT4Innovations 2020
# LK
easyblock = 'ConfigureMake'
name = 'ABINIT'
version = '9.2.1'
homepage = 'https://www.abinit.org/'
description = """ABINIT is a package whose main program allows one to find the total energy,
charge density and electronic structure of systems made of electrons and nuclei (molecules
and periodic solids) within Density Functional Theory (DFT), using pseudopotentials and a
planewave or wavelet basis."""
toolchain = {'name': 'intel', 'version': '2020a'}
toolchainopts = {'usempi': True, 'pic': True}
source_urls = ['https://www.%(namelower)s.org/sites/default/files/packages/']
sources = [SOURCELOWER_TAR_GZ]
checksums = ['4aa2deaeec385ff1624669a59768e1a6655f6367f8f109e69944244e000142a0']
builddependencies = [
('Python', '3.8.2', '', ('GCCcore', '9.3.0')),
]
dependencies = [
('libxc', '4.3.4'),
('netCDF-Fortran', '4.5.2'),
]
# Ensure MPI with intel wrappers.
configopts = '--with-mpi --enable-openmp="yes" --enable-mpi-io --enable-mpi-inplace '
configopts += 'FC="mpiifort" CC="mpiicc" CXX="mpiicpc" '
configopts += '--with-linalg-flavor=mkl --with-fft-flavor=dfti '
configopts += '--with-libxc=${EBROOTLIBXC} with_netcdf="${EBROOTNETCDF}" '
configopts += 'with_netcdf_fortran="${EBROOTNETCDFMINFORTRAN}" with_hdf5="${EBROOTHDF5}" '
# abinit must be run under mpirun with Intel MPI included in intel/2020a
pretestopts = "sed -i 's@./%(namelower)s testin@mpirun -np 1 ./%(namelower)s testin@g' Makefile && "
# 'make check' is just executing some basic unit tests.
# Also running 'make tests_v1' to have some basic validation
runtest = "check && make test_v1"
sanity_check_paths = {
'files': ['bin/%(namelower)s', 'bin/aim', 'bin/cut3d', 'bin/conducti', 'bin/mrgddb', 'bin/mrgscr', 'bin/optic'],
'dirs': ['lib/pkgconfig'],
}
moduleclass = 'chem'