mirror of
https://code.it4i.cz/sccs/easyconfigs-it4i.git
synced 2025-04-08 16:02:11 +01:00

modified: h/HDF5/HDF5-1.10.6-intel-2020b-parallel.eb new file: l/libcint/libcint-5.5.0-gfbf-2023b.eb new file: l/libxc/libxc-4.3.4-foss-2023b.eb modified: l/libxc/libxc-4.3.4-intel-2020b.eb modified: n/netCDF-Fortran/netCDF-Fortran-4.5.3-intel-2020b.eb modified: n/netCDF/netCDF-4.7.4-intel-2020b.eb modified: o/Octopus/Octopus-11.3-intel-2020b-mpi.eb new file: o/OpenMPI/OpenMPI-4.1.6-GCC-12.2.0-CUDA-12.4.0.eb
57 lines
1.7 KiB
Plaintext
57 lines
1.7 KiB
Plaintext
# IT4Innovations
|
|
# LK 2021
|
|
|
|
easyblock = 'CMakeMake'
|
|
|
|
name = 'libxc'
|
|
version = '4.3.4'
|
|
|
|
homepage = 'http://www.tddft.org/programs/octopus/wiki/index.php/Libxc'
|
|
description = """Libxc is a library of exchange-correlation functionals for density-functional theory.
|
|
The aim is to provide a portable, well tested and reliable set of exchange and correlation functionals."""
|
|
|
|
toolchain = {'name': 'intel', 'version': '2020b'}
|
|
|
|
source_urls = ['http://www.tddft.org/programs/libxc/down.php?file=4.3.4/']
|
|
sources = ['libxc-4.3.4.tar.gz']
|
|
checksums = [
|
|
'a8ee37ddc5079339854bd313272856c9d41a27802472ee9ae44b58ee9a298337',
|
|
'60e479b0c56df11c6cfdff8bdf4964bc2c7b36d19740b6b2a468b4f3c55af9cc'
|
|
]
|
|
|
|
patches = [
|
|
#'libxc-%(version)s_rename-F03.patch',
|
|
'libxc-%(version)s.patch'
|
|
]
|
|
|
|
builddependencies = [
|
|
('CMake', '3.18.4'),
|
|
('Perl', '5.32.0'),
|
|
]
|
|
|
|
separate_build_dir = True
|
|
|
|
# rename *.F03 source file since Intel Fortran local_compiler doesn't like that extension
|
|
# also requires patch file to rename file in CMakeLists.txt and src/Makefile.in
|
|
preconfigopts = "mv ../libxc-%(version)s/src/libxc_master.F03 ../libxc-%(version)s/src/libxc_master_F03.F90 && "
|
|
|
|
local_common_configopts = "-DENABLE_FORTRAN=ON -DENABLE_FORTRAN03=ON -DENABLE_XHOST=OFF"
|
|
|
|
# perform iterative build to get both static and shared libraries
|
|
configopts = [
|
|
local_common_configopts + ' -DBUILD_SHARED_LIBS=OFF',
|
|
local_common_configopts + ' -DBUILD_SHARED_LIBS=ON',
|
|
]
|
|
|
|
parallel = 1
|
|
|
|
runtest = 'test'
|
|
|
|
sanity_check_paths = {
|
|
'files': ['bin/xc-info', 'bin/xc-threshold'] +
|
|
['lib/libxc%s.%s' % (x, y) for x in ['', 'f03', 'f90'] for y in ['a', SHLIB_EXT]],
|
|
'dirs': ['include', 'lib/pkgconfig', 'share/cmake/Libxc'],
|
|
}
|
|
|
|
moduleclass = 'chem'
|