From 7d98b42d83a2921ceebac1d89002c6ae225a6990 Mon Sep 17 00:00:00 2001 From: Biju Thomas Date: Fri, 16 Aug 2024 14:06:34 -0400 Subject: [PATCH] Enable Gaea C6 support for hafs_post --- modulefiles/gaeaC6.lua | 26 ++++++++++++++++++++++++++ tests/detect_machine.sh | 3 +++ 2 files changed, 29 insertions(+) create mode 100644 modulefiles/gaeaC6.lua diff --git a/modulefiles/gaeaC6.lua b/modulefiles/gaeaC6.lua new file mode 100644 index 000000000..1c6eb99f5 --- /dev/null +++ b/modulefiles/gaeaC6.lua @@ -0,0 +1,26 @@ +help([[ +Load environment to build UPP on Jet +]]) + + +prepend_path("MODULEPATH", "/autofs/ncrc-svm1_proj/epic/spack-stack/spack-stack-1.6.0/envs/unified-env-c6/install/modulefiles/Core") + +PrgEnv_intel_ver=os.getenv("PrgEnv_intel_ver") or "8.5.0" +load(pathJoin("PrgEnv-intel", PrgEnv_intel_ver)) + +stack_intel_ver=os.getenv("stack_intel_ver") or "2023.2.0" +load(pathJoin("stack-intel", stack_intel_ver)) + +stack_cray_mpich_ver=os.getenv("stack_cray_mpich_ver") or "8.1.29" +load(pathJoin("stack-cray-mpich", stack_cray_mpich_ver)) + +cmake_ver=os.getenv("cmake_ver") or "3.23.1" +load(pathJoin("cmake", cmake_ver)) + +load("upp_common") + +setenv("CC","cc") +setenv("CXX","CC") +setenv("FC","ftn") + +whatis("Description: UPP build environment") diff --git a/tests/detect_machine.sh b/tests/detect_machine.sh index 76b7ce933..87a945bd3 100755 --- a/tests/detect_machine.sh +++ b/tests/detect_machine.sh @@ -24,6 +24,9 @@ case $(hostname -f) in gaea5[1-8]) MACHINE_ID=gaea ;; ### gaea51-58 gaea5[1-8].ncrc.gov) MACHINE_ID=gaea ;; ### gaea51-58 + gaea6[1-8]) MACHINE_ID=gaeaC6 ;; ### gaea61-68 + gaea6[1-8].ncrc.gov) MACHINE_ID=gaeaC6 ;; ### gaea61-68 + hfe0[1-9]) MACHINE_ID=hera ;; ### hera01-09 hfe1[01]) MACHINE_ID=hera ;; ### hera10-11 hecflow01) MACHINE_ID=hera ;; ### heraecflow01