Skip to content

Commit 10aa8a3

Browse files
authored
[v2.1.2-1.6] hotfix: use spack-stack-1.9.3 for gaea after its major os upgrade (NOAA-EMC#982)
* update modulefiles/rrfs/gaea.intel.lua * update the compilers in gaea.intel.lua * add the ifort_icx option for compiling MPAS-Model on Gaea * update RDASApp to include its latest changes for gaea * update build.wps: make it work for new Gaea * use spack-stack-1.9.3 instead of 1.9.2 * remove _g01, _g02 etc from the task names in the taskinfo utility * update MPAS-Model * update qrocoto/taskinfo to handle group tasks (eg. mpassit_g01) * fix a typo in qrocoto/taskinfo
1 parent 2fbafbd commit 10aa8a3

6 files changed

Lines changed: 19 additions & 40 deletions

File tree

modulefiles/rrfs/gaea.intel.lua

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ This module loads libraries for rrfs-workflow
33
]])
44

55
whatis([===[Loads libraries for rrfs-workflow ]===])
6-
prepend_path("MODULEPATH", "/ncrc/proj/epic/spack-stack/c6/spack-stack-1.6.0/envs/unified-env/install/modulefiles/Core")
6+
prepend_path("MODULEPATH", "/ncrc/proj/epic/spack-stack/c6/spack-stack-1.9.3/envs/ue-oneapi-2024.2.1/install/modulefiles/Core")
77

8-
load("stack-intel/2023.2.0")
9-
load("stack-cray-mpich/8.1.29")
10-
load("cmake/3.23.1")
11-
load("parallel-netcdf/1.12.2")
12-
load("parallelio/2.5.10")
8+
load("stack-oneapi/2024.2.1")
9+
load("stack-cray-mpich/8.1.32")
10+
load("cmake/3.27.9")
11+
load("parallel-netcdf/1.12.3")
12+
load("parallelio/2.6.2")
1313
load("libpng/1.6.37")
1414

1515
if mode() == "load" then
@@ -19,6 +19,6 @@ if mode() == "unload" then
1919
unsetenv("PIO")
2020
end
2121

22-
setenv("CMAKE_C_COMPILER", "cc")
23-
setenv("CMAKE_CXX_COMPILER", "CC")
24-
setenv("CMAKE_Fortran_COMPILER", "fn")
22+
setenv("CMAKE_C_COMPILER", "mpicc")
23+
setenv("CMAKE_CXX_COMPILER", "mpic++")
24+
setenv("CMAKE_Fortran_COMPILER", "mpifort")

sorc/MPAS-Model

Submodule MPAS-Model updated 1 file

sorc/RDASApp

sorc/build.mpas

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ if [[ "${MACHINE}" == "wcoss2" ]]; then
1818
source "${BUILD_VERSION_FILE}"
1919
fi
2020
compiler_str="ftn-wcoss2"
21-
elif [[ "${MACHINE}" == "gaea" ]] || [[ "${MACHINE}" == "derecho" ]] ; then
21+
elif [[ "${MACHINE}" == "derecho" ]]; then
2222
compiler_str="ifort"
23+
elif [[ "${MACHINE}" == "gaea" ]]; then
24+
compiler_str="ifort_icx"
2325
elif [[ "${MACHINE}" == "ursa" ]]; then
2426
compiler_str="intel-mpi-ursa"
2527
fi

sorc/build.wps

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -30,46 +30,22 @@ cd "${HOMErrfs}/sorc/WPS" || exit 1
3030
./clean
3131
if [[ "${MACHINE}" == "wcoss2" ]]; then
3232
cp ../_workaround_/WPS/configure.wps_wcoss2 configure.wps
33-
elif [[ "${MACHINE}" == "gaea" ]]; then
33+
elif [[ "${MACHINE}" == "gaea" ]] || [[ "${MACHINE}" == "orion" || "${MACHINE}" == "hercules" || "${MACHINE}" == "ursa" ]]; then
3434
mkdir -p .tmpNETCDFDIR/include
3535
mkdir -p .tmpNETCDFDIR/lib
3636
ln -snf "${netcdf_c_ROOT}"/include/* .tmpNETCDFDIR/include
3737
ln -snf "${netcdf_c_ROOT}"/lib/* .tmpNETCDFDIR/lib
3838
ln -snf "${netcdf_fortran_ROOT}"/include/* .tmpNETCDFDIR/include
3939
ln -snf "${netcdf_fortran_ROOT}"/lib/* .tmpNETCDFDIR/lib
4040
export NETCDF=${HOMErrfs}/sorc/WPS/.tmpNETCDFDIR
41-
echo "23" | ./configure --nowrf
42-
elif [[ "${MACHINE}" == "ursa" ]]; then
43-
mkdir -p .tmpNETCDFDIR/include
44-
mkdir -p .tmpNETCDFDIR/lib
45-
ln -snf "${netcdf_c_ROOT}"/include/* .tmpNETCDFDIR/include
46-
ln -snf "${netcdf_c_ROOT}"/lib/* .tmpNETCDFDIR/lib
47-
ln -snf "${netcdf_fortran_ROOT}"/include/* .tmpNETCDFDIR/include
48-
ln -snf "${netcdf_fortran_ROOT}"/lib/* .tmpNETCDFDIR/lib
49-
export NETCDF=${HOMErrfs}/sorc/WPS/.tmpNETCDFDIR
50-
echo "19" | ./configure --nowrf
51-
elif [[ "${MACHINE}" == "orion" || "${MACHINE}" == "hercules" ]]; then
52-
mkdir -p .tmpNETCDFDIR/include
53-
mkdir -p .tmpNETCDFDIR/lib
54-
ln -snf "${netcdf_c_ROOT}"/include/* .tmpNETCDFDIR/include
55-
ln -snf "${netcdf_c_ROOT}"/lib/* .tmpNETCDFDIR/lib
56-
ln -snf "${netcdf_fortran_ROOT}"/include/* .tmpNETCDFDIR/include
57-
ln -snf "${netcdf_fortran_ROOT}"/lib/* .tmpNETCDFDIR/lib
5841
module load jasper/2.0.32
59-
export NETCDF=${HOMErrfs}/sorc/WPS/.tmpNETCDFDIR
6042
echo "19" | ./configure --nowrf
6143
else
6244
echo "19" | ./configure --nowrf
6345
fi
6446
./compile ungrib
6547

66-
if [[ "${MACHINE}" == "gaea" ]]; then
67-
cd ungrib/src || exit 1
68-
ifort -o ungrib.exe misc_definitions_module.o debug_cio.o module_debug.o module_stringutil.o \
69-
table.o module_datarray.o gridinfo.o new_storage.o filelist.o ungrib.o output.o rrpr.o \
70-
rd_grib1.o file_delete.o datint.o rd_grib2.o ./ngl/w3/libw3.a ./ngl/g2/libg2_4.a \
71-
-ljasper -L"${libpng_ROOT}/lib64" -lpng -lz libpgu.a
72-
elif [[ "${MACHINE}" == "orion" || "${MACHINE}" == "hercules" || "${MACHINE}" == "ursa" ]]; then
48+
if [[ "${MACHINE}" == "gaea" ]] || [[ "${MACHINE}" == "orion" || "${MACHINE}" == "hercules" || "${MACHINE}" == "ursa" ]]; then
7349
cd ungrib/src || exit 1
7450
ifort -o ungrib.exe misc_definitions_module.o debug_cio.o module_debug.o module_stringutil.o \
7551
table.o module_datarray.o gridinfo.o new_storage.o filelist.o ungrib.o output.o rrpr.o \

workflow/ush/qrocoto/taskinfo

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ fi
1616
RUN=rrfs
1717

1818
CDATE=$1
19-
task=$2
19+
taskraw=$2
20+
task=${taskraw%_g*}
2021
PDY=${CDATE:0:8}
2122
cyc=${CDATE:8:2}
2223
logroot=${COMROOT}/${NET}/${VERSION}/logs
23-
logfile="${logroot}/${RUN}.${PDY}/${cyc}/${WGF}/${RUN}_${task}_${TAG}_${PDY}${cyc}.log"
24+
logfile="${logroot}/${RUN}.${PDY}/${cyc}/${WGF}/${RUN}_${taskraw}_${TAG}_${PDY}${cyc}.log"
2425
echo "----log file:"
2526
ls ${logfile}*
2627

0 commit comments

Comments
 (0)