From caa4593bf3d68522f2d80fa57226011bcd0841d1 Mon Sep 17 00:00:00 2001 From: DavidHuber Date: Wed, 18 Oct 2023 20:27:51 +0000 Subject: [PATCH] Update modulefiles to spack-stack-gw on Hera #859 --- modulefiles/build.hera.gnu.lua | 37 ++++++++++++++++---------------- modulefiles/build.hera.intel.lua | 32 +++++++++++++-------------- 2 files changed, 34 insertions(+), 35 deletions(-) diff --git a/modulefiles/build.hera.gnu.lua b/modulefiles/build.hera.gnu.lua index d3bd08e3d..8d9ed217a 100644 --- a/modulefiles/build.hera.gnu.lua +++ b/modulefiles/build.hera.gnu.lua @@ -2,30 +2,28 @@ help([[ Load environment to compile UFS_UTILS on Hera using Gnu ]]) -cmake_ver=os.getenv("cmake_ver") or "3.20.1" -load(pathJoin("cmake", cmake_ver)) - hpss_ver=os.getenv("hpss_ver") or "" load(pathJoin("hpss", hpss_ver)) -prepend_path("MODULEPATH", "/scratch1/NCEPDEV/nems/role.epic/hpc-stack/libs/gnu-9.2/modulefiles/stack") +prepend_path("MODULEPATH", "/scratch1/NCEPDEV/nems/Alexander.Richert/spack-stack-1.4.1-gw/envs/gw/install/modulefiles/Core") +prepend_path("MODULEPATH", "/scratch1/NCEPDEV/jcsda/jedipara/spack-stack/modulefiles") -gnu_ver=os.getenv("gnu_ver") or "9.2" -load(pathJoin("gnu", gnu_ver)) +stack_intel_ver=os.getenv("stack_gcc_ver") or "9.2.0" +load(pathJoin("stack-gcc", stack_intel_ver)) -hpc_ver=os.getenv("hpc_ver") or "1.2.0" -load(pathJoin("hpc", hpc_ver)) +stack_impi_ver=os.getenv("stack_openmpi_ver") or "4.1.5" +load(pathJoin("stack-openmpi", stack_impi_ver)) -hpc_gnu_ver=os.getenv("hpc_gnu_ver") or "9.2" -load(pathJoin("hpc-gnu", hpc_gnu_ver)) +cmake_ver=os.getenv("cmake_ver") or "3.23.1" +load(pathJoin("cmake", cmake_ver)) -hpc_mpich_ver=os.getenv("hpc_mpich_ver") or "3.3.2" -load(pathJoin("hpc-mpich", hpc_mpich_ver)) +netcdf_ver=os.getenv("netcdf_c_ver") or "4.9.2" +load(pathJoin("netcdf-c", netcdf_c_ver)) -netcdf_ver=os.getenv("netcdf_ver") or "4.9.1" -load(pathJoin("netcdf", netcdf_ver)) +netcdf_ver=os.getenv("netcdf_fortran_ver") or "4.6.0" +load(pathJoin("netcdf-fortran", netcdf_ver)) -esmf_ver=os.getenv("esmf_ver") or "8.4.1b07" +esmf_ver=os.getenv("esmf_ver") or "8.4.2" load(pathJoin("esmf", esmf_ver)) bacio_ver=os.getenv("bacio_ver") or "2.4.1" @@ -37,7 +35,7 @@ load(pathJoin("g2", g2_ver)) ip_ver=os.getenv("ip_ver") or "4.0.0" load(pathJoin("ip", ip_ver)) -nemsio_ver=os.getenv("nemsio_ver") or "2.5.4" +nemsio_ver=os.getenv("nemsio_ver") or "2.5.2" load(pathJoin("nemsio", nemsio_ver)) sp_ver=os.getenv("sp_ver") or "2.3.3" @@ -52,13 +50,16 @@ load(pathJoin("sfcio", sfcio_ver)) sigio_ver=os.getenv("sigio_ver") or "2.3.2" load(pathJoin("sigio", sigio_ver)) -nccmp_ver=os.getenv("nccmp_ver") or "1.9.1.0" +nccmp_ver=os.getenv("nccmp_ver") or "1.9.0.1" load(pathJoin("nccmp", nccmp_ver)) -zlib_ver=os.getenv("zlib_ver") or "1.2.12" +zlib_ver=os.getenv("zlib_ver") or "1.2.13" load(pathJoin("zlib", zlib_ver)) png_ver=os.getenv("png_ver") or "1.6.37" load(pathJoin("libpng", png_ver)) +nco_ver=os.getenv("nco_ver") or "5.0.6" +load(pathJoin("nco", nco_ver)) + whatis("Description: UFS_UTILS build environment") diff --git a/modulefiles/build.hera.intel.lua b/modulefiles/build.hera.intel.lua index bf92b2634..ded2fbfdb 100644 --- a/modulefiles/build.hera.intel.lua +++ b/modulefiles/build.hera.intel.lua @@ -2,22 +2,20 @@ help([[ Load environment to compile UFS_UTILS on Hera using Intel ]]) -cmake_ver=os.getenv("cmake_ver") or "3.20.1" -load(pathJoin("cmake", cmake_ver)) - hpss_ver=os.getenv("hpss_ver") or "" load(pathJoin("hpss", hpss_ver)) -prepend_path("MODULEPATH", "/scratch1/NCEPDEV/nems/role.epic/hpc-stack/libs/intel-2022.1.2/modulefiles/stack") +prepend_path("MODULEPATH", "/scratch1/NCEPDEV/nems/Alexander.Richert/spack-stack-1.4.1-gw/envs/gw/install/modulefiles/Core") +prepend_path("MODULEPATH", "/scratch1/NCEPDEV/jcsda/jedipara/spack-stack/modulefiles") -hpc_ver=os.getenv("hpc_ver") or "1.2.0" -load(pathJoin("hpc", hpc_ver)) +stack_intel_ver=os.getenv("stack_intel_ver") or "2021.5.0" +load(pathJoin("stack-intel", stack_intel_ver)) -hpc_intel_ver=os.getenv("hpc_intel_ver") or "2022.1.2" -load(pathJoin("hpc-intel", hpc_intel_ver)) +stack_impi_ver=os.getenv("stack_impi_ver") or "2021.5.1" +load(pathJoin("stack-intel-oneapi-mpi", stack_impi_ver)) -hpc_impi_ver=os.getenv("hpc_impi_ver") or "2022.1.2" -load(pathJoin("hpc-impi", hpc_impi_ver)) +cmake_ver=os.getenv("cmake_ver") or "3.23.1" +load(pathJoin("cmake", cmake_ver)) bacio_ver=os.getenv("bacio_ver") or "2.4.1" load(pathJoin("bacio", bacio_ver)) @@ -28,7 +26,7 @@ load(pathJoin("g2", g2_ver)) ip_ver=os.getenv("ip_ver") or "4.0.0" load(pathJoin("ip", ip_ver)) -nemsio_ver=os.getenv("nemsio_ver") or "2.5.4" +nemsio_ver=os.getenv("nemsio_ver") or "2.5.2" load(pathJoin("nemsio", nemsio_ver)) sp_ver=os.getenv("sp_ver") or "2.3.3" @@ -43,22 +41,22 @@ load(pathJoin("sfcio", sfcio_ver)) sigio_ver=os.getenv("sigio_ver") or "2.3.2" load(pathJoin("sigio", sigio_ver)) -zlib_ver=os.getenv("zlib_ver") or "1.2.12" +zlib_ver=os.getenv("zlib_ver") or "1.2.13" load(pathJoin("zlib", zlib_ver)) png_ver=os.getenv("png_ver") or "1.6.37" load(pathJoin("libpng", png_ver)) -hdf5_ver=os.getenv("hdf5_ver") or "1.14.0" -load(pathJoin("hdf5", hdf5_ver)) +netcdf_ver=os.getenv("netcdf_c_ver") or "4.9.2" +load(pathJoin("netcdf-c", netcdf_ver)) -netcdf_ver=os.getenv("netcdf_ver") or "4.9.1" -load(pathJoin("netcdf", netcdf_ver)) +netcdf_ver=os.getenv("netcdf_fortran_ver") or "4.6.0" +load(pathJoin("netcdf-fortran", netcdf_ver)) nccmp_ver=os.getenv("nccmp_ver") or "1.9.0.1" load(pathJoin("nccmp", nccmp_ver)) -esmf_ver=os.getenv("esmf_ver") or "8.4.1" +esmf_ver=os.getenv("esmf_ver") or "8.4.2" load(pathJoin("esmf", esmf_ver)) nco_ver=os.getenv("nco_ver") or "5.0.6"