Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
6a8886e
compiled in container
weihuang-jedi Apr 9, 2025
eb7a752
change ncio, landsfcutl module places
weihuang-jedi Apr 10, 2025
4cc1f3b
check if it is in container
weihuang-jedi Apr 11, 2025
10105ab
Merge branch 'NOAA-EMC:develop' into feature/use_container_stack-stac…
weihuang-jedi Apr 14, 2025
04d56e3
Merge branch 'develop' of github.com:NOAA-EPIC/gfs-utils into feature…
weihuang-jedi Apr 14, 2025
abdd4e6
re-check inside container
weihuang-jedi Apr 14, 2025
5995c49
Merge branch 'feature/use_container_stack-stack-1.6.0' of ssh://githu…
weihuang-jedi Apr 14, 2025
879e3c3
hanlde module path re-set issue in container
weihuang-jedi Apr 14, 2025
88299bd
try to put into container
weihuang-jedi May 2, 2025
4516684
sync
weihuang-jedi May 9, 2025
4078b70
Merge branch 'NOAA-EMC:develop' into feature/use_container_stack-stac…
weihuang-jedi May 14, 2025
f76028a
Merge branch 'NOAA-EMC:develop' into feature/use_container_stack-stac…
weihuang-jedi Jun 12, 2025
29d2a78
these two are not necessary
weihuang-jedi Jun 12, 2025
898667b
Merge branch 'feature/use_container_stack-stack-1.6.0' of ssh://githu…
weihuang-jedi Jun 12, 2025
29bd762
keep gfsutils_common.lua unchanged, and set bufr in gfsutils_containe…
weihuang-jedi Jun 12, 2025
141eae9
move the /opt check down, and also check if SINGULARITY_CONTAINER is …
weihuang-jedi Jun 12, 2025
0fb1fc1
Always source the lmod init script to override the system module path…
weihuang-jedi Jun 12, 2025
86066a9
overwrite mahcine_id if in container, as hostname check won't be able…
weihuang-jedi Jun 13, 2025
7757839
no need (cannot) load/unload gnu
weihuang-jedi Jun 13, 2025
0cbdbc4
sync
weihuang-jedi Jul 23, 2025
f222fe5
rename few files from .f ro .f90
weihuang-jedi Jul 24, 2025
d094132
keep using ifort, not ifx for now
weihuang-jedi Jul 28, 2025
e0fb12d
Merge branch 'develop' of github.com:NOAA-EPIC/gfs-utils into feature…
weihuang-jedi Aug 20, 2025
803d9e4
update to ss192
weihuang-jedi Aug 20, 2025
66904a9
sync with emc repo, and cleanup
weihuang-jedi Aug 21, 2025
c752f9b
sync with emc repo, and cleanup
weihuang-jedi Aug 21, 2025
6469ba7
Merge branch 'develop' into feature/use_container_spack-stack-1.9.2
weihuang-jedi Sep 5, 2025
9d8a8e3
Merge branch 'develop' into feature/use_container_spack-stack-1.9.2
weihuang-jedi Sep 9, 2025
4628d6e
Update ush/detect_machine.sh
weihuang-jedi Sep 15, 2025
9636fe5
Using only -v SINGULARITY_CONTAINER to check if within a container, a…
weihuang-jedi Sep 15, 2025
f9faf06
Merge branch 'feature/use_container_spack-stack-1.9.2' of github.com:…
weihuang-jedi Sep 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions modulefiles/gfsutils_container.intel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,21 @@ help([[
Build environment for GFS utilities in a container
]])

prepend_path("MODULEPATH", "/opt/spack-stack/spack-stack-1.8.0/envs/unified-env/install/modulefiles/Core")
prepend_path("MODULEPATH", "/opt/spack-stack/spack-stack-1.9.2/envs/unified-env/install/modulefiles/Core")

local stack_intel_ver=os.getenv("stack_intel_ver") or "2021.10.0"
local stack_impi_ver=os.getenv("stack_impi_ver") or "2021.12.1"
local cmake_ver=os.getenv("cmake_ver") or "3.27.9"
stack_oneapi_ver=os.getenv("stack_oneapi_ver") or "2024.2.0"
stack_impi_ver=os.getenv("stack_impi_ver") or "2021.13"

load(pathJoin("stack-intel", stack_intel_ver))
load(pathJoin("stack-oneapi", stack_oneapi_ver))
load(pathJoin("stack-intel-oneapi-mpi", stack_impi_ver))
load(pathJoin("cmake", cmake_ver))

load("gfsutils_common")

setenv("CC", "mpiicx")
setenv("CXX", "mpiicpx")
setenv("FC", "mpiifort")
setenv("I_MPI_CC", "icx")
setenv("I_MPI_CXX", "icpx")
setenv("I_MPI_F90", "ifort")

whatis("Description: GFS utilities environment in container with Intel Compilers")
11 changes: 7 additions & 4 deletions ush/detect_machine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
#
# Thank you for your contribution

# overwrite MACHINE_ID if in container
if [[ -v SINGULARITY_CONTAINER ]]; then
# We are in a container
MACHINE_ID=container
fi

# If the MACHINE_ID variable is set, skip this script.
[[ -n ${MACHINE_ID:-} ]] && return
Comment thread
DavidHuber-NOAA marked this conversation as resolved.

Expand Down Expand Up @@ -55,10 +61,7 @@ if [[ "${MACHINE_ID}" != "UNKNOWN" ]]; then
fi

# Try searching based on paths since hostname may not match on compute nodes
if [[ -d /opt/spack-stack ]]; then
# We are in a container
MACHINE_ID=container
elif [[ -d /lfs/h3 ]]; then
if [[ -d /lfs/h3 ]]; then
# We are on NOAA Cactus or Dogwood
MACHINE_ID=wcoss2
elif [[ -d /lfs/h1 && ! -d /lfs/h3 ]]; then
Expand Down
6 changes: 2 additions & 4 deletions ush/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ elif [[ ${MACHINE_ID} == wcoss2 ]]; then

elif [[ ${MACHINE_ID} == container ]] ; then
# We are in a container
if ( ! eval module help > /dev/null 2>&1 ) ; then
# shellcheck disable=1091
source /usr/lmod/lmod/init/bash
fi
# Always source the lmod init script to override the system module paths and instead use the container modules
source /usr/lmod/lmod/init/bash
module purge

elif [[ ${MACHINE_ID} == gaeac6 ]]; then
Expand Down