Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make gfs-utils compile on CSPs with Rocky 8 #81

Merged
merged 10 commits into from
Oct 18, 2024
15 changes: 9 additions & 6 deletions modulefiles/gfsutils_noaacloud.intel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@ help([[
Build environment for GFS utilities on NOAA Cloud
]])

prepend_path("MODULEPATH", "/contrib/spack-stack/spack-stack-1.6.0/envs/unified-env/install/modulefiles/Core")
prepend_path("MODULEPATH", "/contrib/spack-stack/spack-stack-1.6.0/envs/gsi-addon-env/install/modulefiles/Core")

local stack_intel_ver=os.getenv("stack_intel_ver") or "2021.3.0"
local stack_impi_ver=os.getenv("stack_impi_ver") or "2021.3.0"
local cmake_ver=os.getenv("cmake_ver") or "3.20.1"
prepend_path("MODULEPATH", "/contrib/spack-stack-rocky8/spack-stack-1.6.0/envs/gsi-addon-env/install/modulefiles/Core")
prepend_path("MODULEPATH", "/apps/modules/modulefiles")

load("gnu")
stack_intel_ver=os.getenv("stack_intel_ver") or "2021.10.0"
load(pathJoin("stack-intel", stack_intel_ver))
stack_impi_ver=os.getenv("stack_impi_ver") or "2021.10.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
stack_intel_ver=os.getenv("stack_intel_ver") or "2021.10.0"
load(pathJoin("stack-intel", stack_intel_ver))
stack_impi_ver=os.getenv("stack_impi_ver") or "2021.10.0"
local stack_intel_ver=os.getenv("stack_intel_ver") or "2021.10.0"
load(pathJoin("stack-intel", stack_intel_ver))
local stack_impi_ver=os.getenv("stack_impi_ver") or "2021.10.0"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happened to the local change?

load(pathJoin("stack-intel-oneapi-mpi", stack_impi_ver))
unload("gnu")
weihuang-jedi marked this conversation as resolved.
Show resolved Hide resolved

local cmake_ver=os.getenv("cmake_ver") or "3.23.1"

load(pathJoin("cmake", cmake_ver))

load("gfsutils_common")
Expand Down
13 changes: 12 additions & 1 deletion ush/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,16 @@ elif [[ $MACHINE_ID = discover* ]]; then
. $SPACK_ROOT/share/spack/setup-env.sh

else
echo WARNING: UNKNOWN PLATFORM 1>&2
if [[ ! -v PW_CSP ]]; then
echo WARNING: UNKNOWN PLATFORM 1>&2
elif [[ -z "${PW_CSP}" ]]; then
echo WARNING: UNKNOWN PLATFORM 1>&2
else
if [[ "${PW_CSP}" == "aws" || "${PW_CSP}" == "azure" || "${PW_CSP}" == "google" ]]; then
module purge
else
echo WARNING: UNKNOWN PLATFORM 1>&2
fi
fi

weihuang-jedi marked this conversation as resolved.
Show resolved Hide resolved
fi
Loading