From fb915d8f0e30ca78f77dde94a4167259551005ce Mon Sep 17 00:00:00 2001 From: "Michael Kavulich, Jr" Date: Thu, 16 Nov 2023 11:17:13 -0700 Subject: [PATCH] Add a Derecho GNU modulefile --- scm/etc/modules/derecho_gnu.lua | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 scm/etc/modules/derecho_gnu.lua diff --git a/scm/etc/modules/derecho_gnu.lua b/scm/etc/modules/derecho_gnu.lua new file mode 100644 index 000000000..3af021586 --- /dev/null +++ b/scm/etc/modules/derecho_gnu.lua @@ -0,0 +1,28 @@ +help([[ +This module loads libraries for building the CCPP Single-Column Model on +the CISL machine Derecho (Cray) using Intel-classic-2023.0.0 +]]) + +whatis([===[Loads libraries needed for building the CCPP SCM on Derecho ]===]) + +load(pathJoin("cmake", os.getenv("cmake_ver") or "3.26.3")) +load(pathJoin("ncarenv", os.getenv("ncarenv_ver") or "23.06")) +load(pathJoin("craype", os.getenv("craype_ver") or "2.7.20")) + +unload("conda") +prepend_path("MODULEPATH","/glade/work/epicufsrt/contrib/spack-stack/derecho/modulefiles") +prepend_path("MODULEPATH","/glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.5.1/envs/unified-env/install/modulefiles/Core") +load("stack-gcc/12.2.0") +load("stack-cray-mpich/8.1.25") +load("stack-python/3.10.8") +load("py-f90nml") +load("py-netcdf4/1.5.8") + +load("bacio/2.4.1") +load("sp/2.3.3") +load("w3emc") + +setenv("CMAKE_C_COMPILER","mpicc") +setenv("CMAKE_CXX_COMPILER","mpicxx") +setenv("CMAKE_Fortran_COMPILER","mpif90") +setenv("CMAKE_Platform","derecho.gnu")