From 88493f3437b4930f125a1224972fead924a0ebad Mon Sep 17 00:00:00 2001 From: Wei Huang Date: Fri, 26 Apr 2024 21:29:51 -0600 Subject: [PATCH] add module for AWS (#934) * add module for AWS * comment that this is for NOAA Cloud --- modulefiles/noaacloud.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 modulefiles/noaacloud.lua diff --git a/modulefiles/noaacloud.lua b/modulefiles/noaacloud.lua new file mode 100644 index 000000000..3b444c191 --- /dev/null +++ b/modulefiles/noaacloud.lua @@ -0,0 +1,23 @@ +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") + +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)) + +cmake_ver=os.getenv("cmake_ver") or "3.23.1" +load(pathJoin("cmake", cmake_ver)) + +load("upp_common") + +setenv("CC","mpiicc") +setenv("CXX","mpiicpc") +setenv("FC","mpiifort") + +whatis("Description: UPP build environment")