Skip to content

Commit ec09011

Browse files
Implementing GW to NCAR machine derecho (NOAA-EMC#1358)
* add derecho * compiler on derecho * remove comments * Apply suggestion from @WenMeng-NOAA Good catch. It was modified from ursa module file. Co-authored-by: WenMeng-NOAA <48260754+WenMeng-NOAA@users.noreply.github.com> --------- Co-authored-by: WenMeng-NOAA <48260754+WenMeng-NOAA@users.noreply.github.com>
1 parent cc8ca36 commit ec09011

File tree

1 file changed

+11
-29
lines changed

1 file changed

+11
-29
lines changed

modulefiles/derecho_intel.lua

Lines changed: 11 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,24 @@ help([[
22
Load environment to build UPP on derecho
33
]])
44

5-
prepend_path("MODULEPATH", "/glade/work/epicufsrt/contrib/spack-stack/derecho/modulefiles")
6-
prepend_path("MODULEPATH", "/glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.8.0/envs/ue-intel-2021.10.0/install/modulefiles/Core")
5+
setenv("LMOD_TMOD_FIND_FIRST","yes")
6+
prepend_path("MODULEPATH", "/lustre/desc1/scratch/epicufsrt/contrib/modulefiles_extra")
7+
prepend_path("MODULEPATH", "/glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.9.2/envs/ue-oneapi-2024.2.1/install/modulefiles/Core")
78

8-
load("stack-intel/2021.10.0")
9-
load("stack-cray-mpich/8.1.25")
9+
stack_oneapi_ver=os.getenv("stack_oneapi_ver") or "2024.2.1"
10+
load(pathJoin("stack-oneapi", stack_oneapi_ver))
11+
12+
stack_impi_ver=os.getenv("stack_cray_mpich_ver") or "8.1.29"
13+
load(pathJoin("stack-cray-mpich", stack_cray_mpich_ver))
1014

1115
cmake_ver=os.getenv("cmake_ver") or "3.27.9"
1216
load(pathJoin("cmake", cmake_ver))
1317

14-
local ufs_modules = {
15-
{["jasper"] = "2.0.32" },
16-
{["zlib-ng"] = "2.1.6" },
17-
{["libpng"] = "1.6.37" },
18-
{["hdf5"] = "1.14.3" },
19-
{["netcdf-c"] = "4.9.2" },
20-
{["netcdf-fortran"] = "4.6.1" },
21-
{["bacio"] = "2.4.1" },
22-
{["crtm"] = "2.4.0.1"},
23-
{["g2"] = "3.5.1" },
24-
{["g2tmpl"] = "1.13.0" },
25-
{["ip"] = "5.0.0" },
26-
{["w3emc"] = "2.10.0" },
27-
{["nemsio"] = "2.5.4" },
28-
{["sigio"] = "2.3.2" },
29-
{["wrf-io"] = "1.2.0" },
30-
}
31-
32-
for i = 1, #ufs_modules do
33-
for name, default_version in pairs(ufs_modules[i]) do
34-
local env_version_name = string.gsub(name, "-", "_") .. "_ver"
35-
load(pathJoin(name, os.getenv(env_version_name) or default_version))
36-
end
37-
end
18+
load("upp_common")
3819

3920
setenv("CC", "mpicc")
4021
setenv("CXX", "mpic++")
4122
setenv("FC", "mpifort")
23+
setenv("F90", "mpifort")
4224

43-
whatis("Description: UFS build environment")
25+
whatis("Description: UPP build environment")

0 commit comments

Comments
 (0)