netCDF-4.9.3-iimpi-2025b.eb 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. name = 'netCDF'
  2. version = '4.9.3'
  3. homepage = 'https://www.unidata.ucar.edu/software/netcdf/'
  4. description = """NetCDF (network Common Data Form) is a set of software libraries
  5. and machine-independent data formats that support the creation, access, and sharing of array-oriented
  6. scientific data."""
  7. toolchain = {'name': 'iimpi', 'version': '2025b'}
  8. toolchainopts = {'pic': True, 'usempi': True, 'optarch': 'mavx2'}
  9. source_urls = ['https://github.com/Unidata/%(namelower)s-c/archive/']
  10. sources = ['v%(version)s.tar.gz']
  11. patches = ['%(name)s-%(version_major_minor)s.0_skip-nasa-test.patch']
  12. checksums = [
  13. {'v4.9.3.tar.gz': '990f46d49525d6ab5dc4249f8684c6deeaf54de6fec63a187e9fb382cc0ffdff'},
  14. {'netCDF-4.9.0_skip-nasa-test.patch': '19d99e03c048b037dc01f03f5b8ddc910ebaceb076d0f050540d348f26dfcd2a'},
  15. ]
  16. builddependencies = [
  17. ('Autotools', '20250527'),
  18. ('CMake', '4.0.3'),
  19. ('Doxygen', '1.14.0'),
  20. ]
  21. dependencies = [
  22. ('HDF5', '1.14.6'),
  23. ('cURL', '8.14.1'),
  24. ('Szip', '2.1.1'),
  25. ('bzip2', '1.0.8'),
  26. ('libxml2', '2.14.3'),
  27. ]
  28. # disable Szip, zlib parallel I/O tests, since these can hang on some systems, e.g. generoso
  29. # see: https://github.com/easybuilders/easybuild-easyconfigs/pull/16834
  30. # and https://github.com/easybuilders/easybuild-easyconfigs/pull/17107#issuecomment-1432947172
  31. preconfigopts = (
  32. "sed -i"
  33. " -e 's|@MPIEXEC@ -n 4 ./tst_parallel5|echo \"skipped by EasyBuild\"|g'"
  34. " -e 's|@MPIEXEC@ -n 4 ./tst_parallel_zlib|echo \"skipped by EasyBuild\"|g'"
  35. " -e 's|@MPIEXEC@ -n 4 ./tst_parallel_compress|echo \"skipped by EasyBuild\"|g'"
  36. # disable check for H5 plugins
  37. " -e '10,23d'"
  38. " %(builddir)s/%(namelower)s-c-%(version)s/nc_test4/run_par_test.sh.in &&"
  39. )
  40. # make sure both static and shared libs are built
  41. # and disable "remote" tests that access a unreliable external test server over internet
  42. configopts = [
  43. "-DENABLE_DAP_REMOTE_TESTS=OFF -DBUILD_SHARED_LIBS=OFF",
  44. "-DENABLE_DAP_REMOTE_TESTS=OFF -DBUILD_SHARED_LIBS=ON",
  45. ]
  46. # some tests try to start 16 MPI ranks, so we need to allow oversubscription to avoid failing tests
  47. pretestopts = "PRTE_MCA_rmaps_default_mapping_policy=:oversubscribe "
  48. runtest = 'test'
  49. moduleclass = 'data'