From 66a422db80ea129dd87285fe6e811d4b6e1fe29b Mon Sep 17 00:00:00 2001 From: Wei Huang Date: Wed, 2 Oct 2024 14:38:22 -0600 Subject: [PATCH] Make UPP works with Rocky 8 on CSPs (#1034) * Make UPP works with Rocky 8 on CSPs * Remove unneeded path * simplify modulefile --- modulefiles/noaacloud.lua | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/modulefiles/noaacloud.lua b/modulefiles/noaacloud.lua index fea49b784..71a1b2a01 100644 --- a/modulefiles/noaacloud.lua +++ b/modulefiles/noaacloud.lua @@ -2,15 +2,12 @@ help([[ Load environment to build UPP on NOAA Cloud ]]) - -prepend_path("MODULEPATH", "/contrib/spack-stack/spack-stack-1.6.0/envs/unified-env/install/modulefiles/Core") -prepend_path("MODULEPATH", "/contrib/spack-stack/spack-stack-1.6.0/envs/upp-addon-env/install/modulefiles/Core") - -stack_intel_ver=os.getenv("stack_intel_ver") or "2021.3.0" -load(pathJoin("stack-intel", stack_intel_ver)) - -stack_impi_ver=os.getenv("stack_impi_ver") or "2021.3.0" -load(pathJoin("stack-intel-oneapi-mpi", stack_impi_ver)) +prepend_path("MODULEPATH", "/contrib/spack-stack-rocky8/spack-stack-1.6.0/envs/upp-addon-env/install/modulefiles/Core") +prepend_path("MODULEPATH", "/apps/modules/modulefiles") +load("gnu") +load("stack-intel") +load("stack-intel-oneapi-mpi") +unload("gnu") cmake_ver=os.getenv("cmake_ver") or "3.23.1" load(pathJoin("cmake", cmake_ver))