-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathsetupLC-TPL-uberenv.bash
More file actions
executable file
·62 lines (48 loc) · 2.75 KB
/
setupLC-TPL-uberenv.bash
File metadata and controls
executable file
·62 lines (48 loc) · 2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
## Builds the TPLs on all LC systems. Must be run from the top level TPL directory.
## Usage ./setupLC-TPL-uberenv.bash pathToInstallDirectory
INSTALL_DIR=$1
## Eat up the command line arguments so the rest can be forwarded to setupLC-TPL-helper.
shift
shift
## Trap the interupt signal and kill all children.
trap 'killall' INT
killall() {
trap '' INT TERM # ignore INT and TERM while shutting down
echo "**** Shutting down. Killing chid processes ****" # added double quotes
kill -TERM 0 # fixed order, send TERM not INT
wait
echo DONE
}
if [[ ! -e "scripts/uberenv/uberenv.py" ]]; then
echo "uberenv.py script not found. Please initialize uberenv submodule first."
exit
fi
if [[ -z $INSTALL_DIR ]]; then
echo "No installation directory path was provided"
exit
fi
if [[ ! -d $INSTALL_DIR ]]; then
echo "Installation directory $INSTALL_DIR does not exist. Please initialize first."
exit
fi
if [[ ! "$INSTALL_DIR" = /* ]]; then
echo "Installation directory $INSTALL_DIR must be an absolute path."
exit
fi
echo "Building all LC TPLs from $GEOS_BRANCH to be installed at $INSTALL_DIR..."
./scripts/setupLC-TPL-uberenv-helper.bash $INSTALL_DIR dane gcc-12 "%gcc@12.1.1 +docs" "salloc -n 112 --exclusive -p pdebug" $@ &
./scripts/setupLC-TPL-uberenv-helper.bash $INSTALL_DIR dane gcc-12noAVX "%gcc@12noAVX +docs" "salloc -n 112 --exclusive -p pdebug" $@ &
./scripts/setupLC-TPL-uberenv-helper.bash $INSTALL_DIR dane gcc-13 "%gcc@13.3.1 +docs" "salloc -n 112 --exclusive -p pdebug" $@ &
./scripts/setupLC-TPL-uberenv-helper.bash $INSTALL_DIR dane clang-14 "%clang@14.0.6 +docs" "salloc -n 112 --exclusive -p pdebug" $@ &
./scripts/setupLC-TPL-uberenv-helper.bash $INSTALL_DIR lassen gcc-8-cuda-11 "%gcc@8.3.1+cuda~uncrustify cuda_arch=70 ^cuda@11.8.0+allow-unsupported-compilers" "lalloc 1 -W 150" $@ &
./scripts/setupLC-TPL-uberenv-helper.bash $INSTALL_DIR lassen gcc-12-cuda-12 "%gcc@12.2.1+cuda~uncrustify cuda_arch=70 ^cuda@12.2.2+allow-unsupported-compilers" "lalloc 1 -W 150" $@ &
./scripts/setupLC-TPL-uberenv-helper.bash $INSTALL_DIR lassen clang-13-cuda-11 "%clang@13.0.1+cuda~uncrustify cuda_arch=70 ^cuda@11.8.0+allow-unsupported-compilers" "lalloc 1 -W 150" $@ &
./scripts/setupLC-TPL-uberenv-helper.bash $INSTALL_DIR lassen clang-10-cuda-11 "%clang@10.0.1+cuda~uncrustify cuda_arch=70 ^cuda@11.8.0+allow-unsupported-compilers" "lalloc 1 -W 150" $@ &
./scripts/setupLC-TPL-uberenv-helper.bash $INSTALL_DIR lassen clang-13-cuda-12 "%clang@13.0.1+cuda~uncrustify cuda_arch=70 ^cuda@12.2.2+allow-unsupported-compilers" "lalloc 1 -W 150" $@ &
# Note: Estimated completion time is ~90 minutes.
# Check log files for unreported completion of jobs.
wait
chmod -R g+rx $INSTALL_DIR
chgrp -R GEOS $INSTALL_DIR
echo "Complete"