|
103 | 103 | SPACK_STACK_BATCH_HOST=$(echo ${HOSTNAME} | cut -d "." -f 1) |
104 | 104 | SPACK_STACK_BATCH_HOST=${SPACK_STACK_BATCH_HOST//[0-9]/} |
105 | 105 |
|
| 106 | +# Workaround for ParallelWorks login nodes |
| 107 | +if [[ "${SPACK_STACK_BATCH_HOST}" == *"awsneptunecluster"* ]]; then |
| 108 | + SPACK_STACK_BATCH_HOST="navy-aws" |
| 109 | +fi |
| 110 | + |
106 | 111 | case ${SPACK_STACK_BATCH_HOST} in |
107 | 112 | atlantis) |
108 | 113 | SPACK_STACK_BATCH_COMPILERS=("oneapi@=2024.2.1" "oneapi@=2025.3.0" "gcc@=13.4.0" "clang@=21.1.0") |
@@ -139,6 +144,13 @@ case ${SPACK_STACK_BATCH_HOST} in |
139 | 144 | SPACK_STACK_BOOTSTRAP_MIRROR="/p/cwfs/projects/NEPTUNE/spack-stack/bootstrap-mirror" |
140 | 145 | SPACK_STACK_CARGO_MIRROR="/p/cwfs/projects/NEPTUNE/spack-stack/cargo-mirror" |
141 | 146 | ;; |
| 147 | + navy-aws) |
| 148 | + SPACK_STACK_BATCH_COMPILERS=("oneapi@=2025.3.0" "gcc@=13.3.1") |
| 149 | + SPACK_STACK_BATCH_TEMPLATES=("neptune-dev" "cylc-dev") |
| 150 | + SPACK_STACK_MODULE_CHOICE="tcl" |
| 151 | + SPACK_STACK_BOOTSTRAP_MIRROR="/project/spack-stack/bootstrap-mirror" |
| 152 | + SPACK_STACK_CARGO_MIRROR="/project/spack-stack/cargo-mirror" |
| 153 | + ;; |
142 | 154 | tusk) |
143 | 155 | SPACK_STACK_BATCH_COMPILERS=("oneapi@=2024.2.0" "gcc@=12.1.0") |
144 | 156 | SPACK_STACK_BATCH_TEMPLATES=("neptune-dev") |
@@ -222,6 +234,13 @@ function fix_permissions() { |
222 | 234 | fi |
223 | 235 | nice -n 19 lfs find ${dir} -type f -print0 | xargs --null chmod a+r |
224 | 236 | ;; |
| 237 | + navy-aws) |
| 238 | + nice -n 19 find ${dir} -type d -print0 | xargs --null chmod a+rx |
| 239 | + if [[ ${executables} -eq 1 ]]; then |
| 240 | + nice -n 19 find ${dir} -type f -executable -print0 | xargs --null chmod a+rx |
| 241 | + fi |
| 242 | + nice -n 19 find ${dir} -type f -print0 | xargs --null chmod a+r |
| 243 | + ;; |
225 | 244 | tusk) |
226 | 245 | nice -n 19 lfs find ${dir} -type d -print0 | xargs --null chmod a+rx |
227 | 246 | # In case the find command returns no executables |
@@ -427,6 +446,15 @@ for compiler in "${SPACK_STACK_BATCH_COMPILERS[@]}"; do |
427 | 446 | umask 0022 |
428 | 447 | module purge |
429 | 448 | ;; |
| 449 | + navy-aws) |
| 450 | + umask 0022 |
| 451 | + module purge |
| 452 | + case ${compiler} in |
| 453 | + gcc-13.3.1) |
| 454 | + module use /project/spack-stack/openmpi-4.1.8/gcc-13.3.1/modulefiles |
| 455 | + ;; |
| 456 | + esac |
| 457 | + ;; |
430 | 458 | tusk) |
431 | 459 | umask 0022 |
432 | 460 | set +e |
|
0 commit comments