From 520cc233f7919dbbe5dc7fc0246354ae95caa2dc Mon Sep 17 00:00:00 2001 From: WenMeng-NOAA <48260754+WenMeng-NOAA@users.noreply.github.com> Date: Thu, 10 Aug 2023 16:27:55 -0400 Subject: [PATCH] Add modulefiles for Hercules (#760) * Delete machines not in operation * Add modulefiles/hercules.lua. --------- Co-authored-by: Wen Meng --- modulefiles/hercules.lua | 72 ++++++++++++++++++++++++++++++++++++++++ tests/detect_machine.sh | 39 +++------------------- 2 files changed, 77 insertions(+), 34 deletions(-) create mode 100755 modulefiles/hercules.lua diff --git a/modulefiles/hercules.lua b/modulefiles/hercules.lua new file mode 100755 index 000000000..9424bf7c5 --- /dev/null +++ b/modulefiles/hercules.lua @@ -0,0 +1,72 @@ +help([[ +loads post prerequisites for Hercules/Intel +]]) + +prepend_path("MODULEPATH", "/work/noaa/epic/role-epic/spack-stack/hercules/spack-stack-dev-20230717/envs/unified-env/install/modulefiles/Core") + +intel_ver=os.getenv("intel_ver") or "2021.9.0" +load(pathJoin("stack-intel", intel_ver)) + +mpi_ver=os.getenv("mpi_ver") or "2021.9.0" +load(pathJoin("stack-intel-oneapi-mpi", mpi_ver)) + +cmake_ver=os.getenv("cmake_ver") or "3.23.1" +load(pathJoin("cmake", cmake_ver)) + +jasper_ver=os.getenv("jasper_ver") or "2.0.32" +load(pathJoin("jasper", jasper_ver)) + +zlib_ver=os.getenv("zlib_ver") or "1.2.13" +load(pathJoin("zlib", zlib_ver)) + +libpng_ver=os.getenv("libpng_ver") or "1.6.37" +load(pathJoin("libpng", libpng_ver)) + +hdf5_ver=os.getenv("hdf5_ver") or "1.14.1-2" +load(pathJoin("hdf5", hdf5_ver)) + +netcdf_c_ver=os.getenv("netcdf_c_ver") or "4.9.2" +load(pathJoin("netcdf-c", netcdf_c_ver)) + +netcdf_fortran_ver=os.getenv("netcdf_fortran_ver") or "4.6.0" +load(pathJoin("netcdf-fortran", netcdf_fortran_ver)) + +bacio_ver=os.getenv("bacio_ver") or "2.4.1" +load(pathJoin("bacio", bacio_ver)) + +crtm_ver=os.getenv("crtm_ver") or "2.4.0" +load(pathJoin("crtm", crtm_ver)) + +g2_ver=os.getenv("g2_ver") or "3.4.5" +load(pathJoin("g2", g2_ver)) + +g2tmpl_ver=os.getenv("g2tmpl_ver") or "1.10.2" +load(pathJoin("g2tmpl", g2tmpl_ver)) + +ip_ver=os.getenv("ip_ver") or "3.3.3" +load(pathJoin("ip", ip_ver)) + +sp_ver=os.getenv("sp_ver") or "2.3.3" +load(pathJoin("sp", sp_ver)) + +w3emc_ver=os.getenv("w3emc_ver") or "2.9.2" +load(pathJoin("w3emc", w3emc_ver)) + +nemsio_ver_ver=os.getenv("nemsio_ver") or "2.5.4" +load(pathJoin("nemsio", nemsio_ver)) + +sigio_ver=os.getenv("sigio_ver") or "2.3.2" +load(pathJoin("sigio", sigio_ver)) + +sfcio_ver=os.getenv("sfcio_ver") or "1.4.1" +load(pathJoin("sfcio", sfcio_ver)) + +wrf_io_ver=os.getenv("wrf_io_ver") or "1.2.0" +load(pathJoin("wrf-io", wrf_io_ver)) + +setenv("CC", "mpiicc") +setenv("CXX", "mpiicpc") +setenv("FC", "mpiifort") +setenv("CMAKE_Platform", "hercules.intel") + +whatis("Description: POST build environment") diff --git a/tests/detect_machine.sh b/tests/detect_machine.sh index 7620dc004..ed58149f4 100755 --- a/tests/detect_machine.sh +++ b/tests/detect_machine.sh @@ -2,40 +2,6 @@ case $(hostname -f) in - llogin1) MACHINE_ID=wcoss_cray ;; ### luna - llogin2) MACHINE_ID=wcoss_cray ;; ### luna - llogin3) MACHINE_ID=wcoss_cray ;; ### luna - - slogin1) MACHINE_ID=wcoss_cray ;; ### surge - slogin2) MACHINE_ID=wcoss_cray ;; ### surge - slogin3) MACHINE_ID=wcoss_cray ;; ### surge - - v71a1.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### venus - v71a2.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### venus - v71a3.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### venus - v72a1.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### venus - v72a2.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### venus - v72a3.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### venus - v109a1.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### venus - v109a2.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### venus - v109a3.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### venus - v110a1.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### venus - v110a2.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### venus - v110a3.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### venus - - m71a1.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### mars - m71a2.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### mars - m71a3.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### mars - m72a1.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### mars - m72a2.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### mars - m72a3.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### mars - m109a1.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### mars - m110a2.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### mars - m109a3.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### mars - m110a1.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### mars - m110a2.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### mars - m110a3.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### mars - alogin01.acorn.wcoss2.ncep.noaa.gov) MACHINE_ID=wcoss2_a ;; ### acorn alogin02.acorn.wcoss2.ncep.noaa.gov) MACHINE_ID=wcoss2_a ;; ### acorn adecflow01.acorn.wcoss2.ncep.noaa.gov) MACHINE_ID=wcoss2 ;; ### acorn @@ -105,6 +71,11 @@ case $(hostname -f) in Orion-login-3.HPC.MsState.Edu) MACHINE_ID=orion ;; ### orion3 Orion-login-4.HPC.MsState.Edu) MACHINE_ID=orion ;; ### orion4 + Hercules-login-1.HPC.MsState.Edu) MACHINE_ID=hercules ;; ### hercules1 + Hercules-login-2.HPC.MsState.Edu) MACHINE_ID=hercules ;; ### hercules2 + Hercules-login-3.HPC.MsState.Edu) MACHINE_ID=hercules ;; ### hercules3 + Hercules-login-4.HPC.MsState.Edu) MACHINE_ID=hercules ;; ### hercules4 + cheyenne1.cheyenne.ucar.edu) MACHINE_ID=cheyenne ;; ### cheyenne1 cheyenne2.cheyenne.ucar.edu) MACHINE_ID=cheyenne ;; ### cheyenne2 cheyenne3.cheyenne.ucar.edu) MACHINE_ID=cheyenne ;; ### cheyenne3