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

Add/update files to build and run prepobs on Gaea C5 #35

Merged
merged 2 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
18 changes: 18 additions & 0 deletions modulefiles/prepobs_gaea.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
help([[
Load environment to build prepobs on Gaea
]])

prepend_path("MODULEPATH", os.getenv("spack_stack_mod_path"))

stack_intel_ver=os.getenv("stack_intel_ver") or "2023.1.0"
stack_cray_mpich_ver=os.getenv("stack_cray_mpich_ver") or "8.1.25"
cmake_ver=os.getenv("cmake_ver") or "3.23.1"

load(pathJoin("stack-intel", stack_intel_ver))
load(pathJoin("stack-cray-mpich", stack_cray_mpich_ver))
load(pathJoin("cmake", cmake_ver))

-- Load common modules for this package
load("prepobs_common")

whatis("Description: prepobs build environment")
2 changes: 1 addition & 1 deletion ush/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ INSTALL_PREFIX=${INSTALL_PREFIX:-"${pkg_root}/install"}
MODULEFILE_INSTALL_PREFIX=${MODULEFILE_INSTALL_PREFIX:-"${INSTALL_PREFIX}/modulefiles"}

target="${INSTALL_TARGET,,}"
if [[ "${target}" =~ ^(wcoss2|hera|orion|jet|hercules)$ ]]; then
if [[ "${target}" =~ ^(wcoss2|hera|orion|jet|hercules|gaea)$ ]]; then
# prepare the target specific build.ver and run.ver
cd "${pkg_root}/versions" || exit 1
rm -f build.ver run.ver
Expand Down
4 changes: 4 additions & 0 deletions versions/build.gaea.ver
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export stack_intel_ver=2023.1.0
export stack_cray_mpich_ver=8.1.25
source "${HOMEprepobs:-}/versions/spack.ver"
export spack_stack_mod_path="/ncrc/proj/epic/spack-stack/spack-stack-${spack_stack_ver}/envs/${spack_env}-dev/install/modulefiles/Core"
4 changes: 4 additions & 0 deletions versions/run.gaea.ver
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export stack_intel_ver=2023.1.0
export stack_cray_mpich_ver=8.1.25
source "${HOMEprepobs:-}/versions/spack.ver"
export spack_stack_mod_path="/ncrc/proj/epic/spack-stack/spack-stack-${spack_stack_ver}/envs/${spack_env}-dev/install/modulefiles/Core"