Skip to content

Commit

Permalink
Update Derecho module to use spack-stack
Browse files Browse the repository at this point in the history
  • Loading branch information
mkavulich committed Nov 16, 2023
1 parent b8dc8b4 commit 35461ed
Showing 1 changed file with 9 additions and 24 deletions.
33 changes: 9 additions & 24 deletions scm/etc/modules/derecho_intel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,18 @@ 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("netcdf")
unload("hdf5")
load(pathJoin("intel-classic", os.getenv("intel_classic_ver") or "2023.0.0"))
load(pathJoin("cray-mpich", os.getenv("cray_mpich_ver") or "8.1.25"))

prepend_path("MODULEPATH","/glade/work/epicufsrt/contrib/derecho/hpc-stack/intel-classic-2023.0.0/modulefiles/stack")
load(pathJoin("hpc", os.getenv("hpc_ver") or "1.2.0"))
load(pathJoin("hpc-intel-classic", os.getenv("hpc_intel_classic_ver") or "2023.0.0"))
load(pathJoin("hpc-cray-mpich", os.getenv("hpc_cray_mpich_ver") or "8.1.25"))

load(pathJoin("ncarcompilers", os.getenv("ncarcompilers_ver") or "1.0.0"))

load_any("netcdf/4.9.2","netcdf-c/4.9.2")
load_any("netcdf/4.9.2","netcdf-fortran/4.6.0")
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-intel/2021.10.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/2.9.2")
load("w3emc")

setenv("CC","cc")
setenv("FC","ftn")
Expand All @@ -36,12 +30,3 @@ setenv("CMAKE_C_COMPILER","cc")
setenv("CMAKE_CXX_COMPILER","CC")
setenv("CMAKE_Fortran_COMPILER","ftn")
setenv("CMAKE_Platform","derecho.intel")

load("conda/latest")

if mode() == "load" then
LmodMsgRaw([===[Please do the following to activate conda environment:
> conda activate /glade/p/ral/jntp/GMTB/CCPP_SCM/conda/ccpp-scm
]===])
end

0 comments on commit 35461ed

Please sign in to comment.