From 10555baf5695f14f039e19e42db5c6894eda97e2 Mon Sep 17 00:00:00 2001 From: Rahul Mahajan Date: Fri, 28 Jun 2024 11:43:56 -0400 Subject: [PATCH] update orion modulefile for rocky8 upgrade --- modulefiles/orion.intel-run.lua | 11 ++++++++--- modulefiles/orion.intel.lua | 11 ++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/modulefiles/orion.intel-run.lua b/modulefiles/orion.intel-run.lua index a6956cf..bb795b5 100644 --- a/modulefiles/orion.intel-run.lua +++ b/modulefiles/orion.intel-run.lua @@ -1,10 +1,15 @@ help([[ ]]) -prepend_path("MODULEPATH", "/work/noaa/epic/role-epic/spack-stack/orion/spack-stack-1.6.0/envs/gsi-addon-env/install/modulefiles/Core") +-- Spack Stack installation specs +local ss_dir="/work/noaa/epic/role-epic/spack-stack/orion" +local ss_ver=os.getenv("stack_ver") or "1.6.0" +local ss_env=os.getenv("stack_env") or "gsi-addon-env-rocky9" -local stack_intel_ver=os.getenv("stack_intel_ver") or "2022.0.2" -local stack_impi_ver=os.getenv("stack_impi_ver") or "2021.5.1" +prepend_path("MODULEPATH", pathJoin(ss_dir, "spack-stack-" .. ss_ver, "envs", ss_env, "install/modulefiles/Core")) + +local stack_intel_ver=os.getenv("stack_intel_ver") or "2021.9.0" +local stack_impi_ver=os.getenv("stack_impi_ver") or "2021.9.0" local grads_ver=os.getenv("grads_ver") or "2.2.1" local prod_util_ver=os.getenv("prod_util_ver") or "2.1.1" diff --git a/modulefiles/orion.intel.lua b/modulefiles/orion.intel.lua index 1b3425a..8df836f 100644 --- a/modulefiles/orion.intel.lua +++ b/modulefiles/orion.intel.lua @@ -1,10 +1,15 @@ help([[ ]]) -prepend_path("MODULEPATH", "/work/noaa/epic/role-epic/spack-stack/orion/spack-stack-1.6.0/envs/gsi-addon-env/install/modulefiles/Core") +-- Spack Stack installation specs +local ss_dir="/work/noaa/epic/role-epic/spack-stack/orion" +local ss_ver=os.getenv("stack_ver") or "1.6.0" +local ss_env=os.getenv("stack_env") or "gsi-addon-env-rocky9" -local stack_intel_ver=os.getenv("stack_intel_ver") or "2022.0.2" -local stack_impi_ver=os.getenv("stack_impi_ver") or "2021.5.1" +prepend_path("MODULEPATH", pathJoin(ss_dir, "spack-stack-" .. ss_ver, "envs", ss_env, "install/modulefiles/Core")) + +local stack_intel_ver=os.getenv("stack_intel_ver") or "2021.9.0" +local stack_impi_ver=os.getenv("stack_impi_ver") or "2021.9.0" local cmake_ver=os.getenv("cmake_ver") or "3.23.1" load(pathJoin("stack-intel", stack_intel_ver))