easyconfigs-it4i/n/netCDF/netCDF-4.9.2-gompi-2024it4i.eb
Lukas Krupcik 58e312c77f new file: c/CMake/CMake-3.30.5-acfl-24.10.eb
new file:   d/Doxygen/Doxygen-1.11.0-GCCcore-14.2.0.eb
	new file:   g/gompi/gompi-2024it4i.eb
	new file:   g/gzip/gzip-1.13-GCCcore-14.2.0.eb
	new file:   h/HDF5/HDF5-1.14.5-gompi-2024it4i.eb
	new file:   l/libiconv/libiconv-1.17-GCCcore-14.2.0.eb
	new file:   l/lz4/lz4-1.9.4-GCCcore-14.2.0.eb
	new file:   m/make/make-4.4.1-GCCcore-14.2.0.eb
	new file:   n/netCDF-Fortran/netCDF-Fortran-4.6.1-gompi-2024it4i.eb
	new file:   n/netCDF/netCDF-4.9.2-gompi-2024it4i.eb
	new file:   o/OpenBLAS/OpenBLAS-0.3.27-GCC-14.2.0.eb
	new file:   p/PRRTE/PRRTE-3.0.5-GCCcore-14.2.0.eb
	new file:   s/Szip/Szip-2.1.1-GCCcore-14.2.0.eb
	new file:   z/zstd/zstd-1.5.6-GCCcore-14.2.0.eb
2024-10-21 13:49:55 +02:00

71 lines
2.6 KiB
Plaintext

# IT4Innovations
# LK 2024
# rucne kompilovat, pak jen --module-only
# po cmake pridat -lmpi do netcdf.pc nc-config libnetcdf.settings
name = 'netCDF'
version = '4.9.2'
homepage = 'https://www.unidata.ucar.edu/software/netcdf/'
description = """NetCDF (network Common Data Form) is a set of software libraries
and machine-independent data formats that support the creation, access, and sharing of array-oriented
scientific data."""
toolchain = {'name': 'gompi', 'version': '2024it4i'}
import os
if os.environ.get("CLUSTERNAME") in ["KAROLINA"]:
toolchainopts = {'usempi': True, 'opt': True, 'optarch': 'march=core-avx2'}
else:
toolchainopts = {'usempi': True, 'opt': True}
source_urls = ['https://github.com/Unidata/netcdf-c/archive/']
sources = ['v%(version)s.tar.gz']
patches = [
'netCDF-4.9.0_skip-nasa-test.patch',
]
checksums = [
{'v4.9.2.tar.gz': 'bc104d101278c68b303359b3dc4192f81592ae8640f1aee486921138f7f88cb7'},
'19d99e03c048b037dc01f03f5b8ddc910ebaceb076d0f050540d348f26dfcd2a', # netCDF-4.9.0_skip-nasa-test.patch
]
builddependencies = [
('Autotools', '20231222'),
('CMake', '3.30.5'),
('Doxygen', '1.11.0'),
]
dependencies = [
('HDF5', '1.14.5'),
('cURL', '8.7.1'),
('Szip', '2.1.1'),
('zstd', '1.5.6'),
('bzip2', '1.0.8'),
('libxml2', '2.12.7'),
]
# disable Szip, zlib parallel I/O tests, since these can hang on some systems, e.g. generoso
# see: https://github.com/easybuilders/easybuild-easyconfigs/pull/16834
# and https://github.com/easybuilders/easybuild-easyconfigs/pull/17107#issuecomment-1432947172
# and https://github.com/easybuilders/easybuild-easyconfigs/pull/18523#issuecomment-1675313158
preconfigopts = ("sed -i -e 's|@MPIEXEC@ -n 16 ./tst_parallel3|echo \"skipped by EasyBuild\"|g'"
" -e 's|@MPIEXEC@ -n 4 ./tst_parallel5|echo \"skipped by EasyBuild\"|g'"
" -e 's|@MPIEXEC@ -n 4 ./tst_parallel_zlib|echo \"skipped by EasyBuild\"|g'"
" -e 's|@MPIEXEC@ -n 4 ./tst_parallel_compress|echo \"skipped by EasyBuild\"|g'"
" %(builddir)s/%(namelower)s-c-%(version)s/nc_test4/run_par_test.sh.in &&")
# make sure both static and shared libs are built
# and disable "remote" tests that access a unreliable external test server over internet
configopts = [
"-DENABLE_DAP_REMOTE_TESTS=OFF -DBUILD_SHARED_LIBS=OFF",
"-DENABLE_DAP_REMOTE_TESTS=OFF -DBUILD_SHARED_LIBS=ON",
]
buildopts = 'CFLAGS="-O3 -fPIC"'
# some tests try to start 16 MPI ranks, so we need to allow oversubscription to avoid failing tests
pretestopts = "OMPI_MCA_rmaps_base_oversubscribe=1 "
runtest = 'test'
moduleclass = 'data'