This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
HAS_INPUT_FILE=0 | |
ARGS=$@ | |
ARGS=$(echo $ARGS | perl -pe 's/-I.*?(\s-[^I])/\1/') | |
while [ $# -ne 0 ]; do | |
ARG=$1 | |
# Skip options | |
if [ "$ARG" == "-arch" ] || [ "$ARG" == "-o" ]; then | |
# Skip next token | |
shift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Copyright (c) 2024, Nuno Nobre, STFC Hartree Centre | |
## A script that uses Spack to automate the installation of LBANN with CUDA support | |
## on Scafell Pike, the Hartree Centre's supercomputer | |
### Use python3 as required by Spack | |
module load python3/3.10.13 |