netCDF-4.9.2-iimpi-2024a.eb 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. name = 'netCDF'
  2. version = '4.9.2'
  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': '2024a'}
  8. toolchainopts = {'pic': True, 'usempi': True, 'optarch': 'mavx2'}
  9. source_urls = ['https://github.com/Unidata/netcdf-c/archive/']
  10. sources = ['v%(version)s.tar.gz']
  11. patches = [
  12. 'netCDF-4.9.0_skip-nasa-test.patch',
  13. ]
  14. checksums = [
  15. {'v4.9.2.tar.gz': 'bc104d101278c68b303359b3dc4192f81592ae8640f1aee486921138f7f88cb7'},
  16. {'netCDF-4.9.0_skip-nasa-test.patch': '19d99e03c048b037dc01f03f5b8ddc910ebaceb076d0f050540d348f26dfcd2a'},
  17. ]
  18. builddependencies = [
  19. ('Autotools', '20231222'),
  20. ('CMake', '3.29.3'),
  21. ('Doxygen', '1.11.0'),
  22. ]
  23. dependencies = [
  24. ('HDF5', '1.14.5'),
  25. ('cURL', '8.7.1'),
  26. ('Szip', '2.1.1'),
  27. ('zstd', '1.5.6'),
  28. ('bzip2', '1.0.8'),
  29. ('libxml2', '2.12.7'),
  30. ]
  31. # disable Szip, zlib parallel I/O tests, since these can hang on some systems, e.g. generoso
  32. # see: https://github.com/easybuilders/easybuild-easyconfigs/pull/16834
  33. # and https://github.com/easybuilders/easybuild-easyconfigs/pull/17107#issuecomment-1432947172
  34. # and https://github.com/easybuilders/easybuild-easyconfigs/pull/18523#issuecomment-1675313158
  35. preconfigopts = ("sed -i -e 's|@MPIEXEC@ -n 16 ./tst_parallel3|echo \"skipped by EasyBuild\"|g'"
  36. " -e 's|@MPIEXEC@ -n 4 ./tst_parallel5|echo \"skipped by EasyBuild\"|g'"
  37. " -e 's|@MPIEXEC@ -n 4 ./tst_parallel_zlib|echo \"skipped by EasyBuild\"|g'"
  38. " -e 's|@MPIEXEC@ -n 4 ./tst_parallel_compress|echo \"skipped by EasyBuild\"|g'"
  39. " %(builddir)s/%(namelower)s-c-%(version)s/nc_test4/run_par_test.sh.in &&")
  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 = "OMPI_MCA_rmaps_base_oversubscribe=1 "
  48. runtest = 'test'
  49. moduleclass = 'data'