easyconfigs-it4i/d/DFTB+/DFTB+-21.1-intel-2020b-Python-3.8.6-karolina.eb
Lukas Krupcik a2bb6c8760 new file: d/DFT-D4/DFT-D4-3.2.0-remove_module_id.patch
new file:   d/DFT-D4/DFT-D4-3.6.0-intel-2022b-Python-3.10.8.eb
	modified:   d/DFTB+/DFTB+-21.1-intel-2020b-Python-3.8.6-karolina.eb
	modified:   d/DFTB+/DFTB+-21.2-intel-2020b-TB.eb
	new file:   f/Forge/Forge-23.0.2.eb
	new file:   l/LAPACK/LAPACK-3.10.0-GCC-12.2.0.eb
	modified:   p/PyTorch/PyTorch-1.11.0-fosscuda-2020b.eb
	modified:   v/VASP/VASP-6.2.0-intel-2020b.eb
	new file:   v/VASP/VASP-6.4.2-intel-2022b-DFT-D4.eb
	new file:   w/Wannier90/Wannier90-3.1.0-intel-2022b-serial.eb
2023-09-27 09:23:34 +02:00

87 lines
2.9 KiB
Plaintext

# IT4Innovations 2021
# LK
easyblock = 'CMakeMake'
name = 'DFTB+'
version = '21.1'
versionsuffix = '-Python-%(pyver)s-karolina'
homepage = 'https://www.dftb-plus.info'
description = """DFTB+ is a fast and efficient versatile quantum mechanical simulation package.
It is based on the Density Functional Tight Binding (DFTB) method, containing
almost all of the useful extensions which have been developed for the DFTB
framework so far. Using DFTB+ you can carry out quantum mechanical simulations
like with ab-initio density functional theory based packages, but in an
approximate way gaining typically around two order of magnitude in speed."""
toolchain = {'name': 'intel', 'version': '2020b'}
# AMD/intel cpu
#toolchainopts = {'lowopt': True, 'optarch': False} # original
import os
if os.environ.get("CLUSTERNAME") in ["KAROLINA"]:
toolchainopts = {'lowopt': True, 'optarch': 'march=core-avx2'}
else:
toolchainopts = {'lowopt': True, 'optarch': False}
local_external_dir = '%%(builddir)s/dftbplus-%%(version)s/external/%s/origin/'
local_external_extract = 'mkdir -p %s && tar -C %s' % (local_external_dir, local_external_dir)
local_external_extract += ' --strip-components=1 -xzf %%s'
sources = [
{
# DFTB+ source code
'source_urls': ['https://github.com/dftbplus/dftbplus/archive'],
'download_filename': '%(version)s.tar.gz',
'filename': SOURCE_TAR_GZ,
},
{
# Slater-Koster (slakos) data for testing
'source_urls': ['https://github.com/dftbplus/testparams/archive'],
'download_filename': 'd0ea16df2b56d14c7c3dc9329a8d3bac9fea50a0.tar.gz',
'filename': 'slakos-data-%(version)s.tar.gz',
'extract_cmd': local_external_extract % ('slakos', 'slakos'),
},
]
checksums = [
'31d5a488843a05d8589a375307a2832c1fc938f9f7d830c45a062726659e7b0a',
'9b64193368a13ae7c238399da8be2b3730a0f3273f9bf6c8054b2ff57d748823'
]
builddependencies = [
('CMake', '3.18.4'),
]
dependencies = [
('Python', '3.8.6'),
('SciPy-bundle', '2020.11'),
('arpack-ng', '3.8.0'),
('dftd3-lib', '0.9.2', '', ('GCC', '10.2.0')),
]
# Link to Arpack
local_makeopts = ' WITH_ARPACK=1 ARPACK_LIBS="-L$EBROOTARPACKMINNG/lib -larpack" ARPACK_NEEDS_LAPACK=1'
# Use DFTD3 from EB
local_makeopts += ' WITH_DFTD3=1 COMPILE_DFTD3=0 DFTD3_INCS="-I$EBROOTDFTD3MINLIB/include"'
local_makeopts += ' DFTD3_LIBS="-L$EBROOTDFTD3MINLIB/lib -ldftd3"'
buildopts = local_makeopts
#runtest = 'test' + local_makeopts
installopts = 'INSTALLDIR="%(installdir)s"'
sanity_check_paths = {
'files': ['bin/' + x for x in ['dftb+', 'dp_bands', 'dp_dos', 'gen2cif', 'gen2xyz', 'makecube',
'modes', 'repeatgen', 'straingen', 'waveplot', 'xyz2gen']],
'dirs': ['lib/python%(pyshortver)s/site-packages']
}
sanity_check_commands = [('python', '-c "import dptools"')]
modextrapaths = {'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages'}
moduleclass = 'phys'