Download hmc/reference/scripts/epic/launch.sh from neurodeskorg/webapps: direct link, hf CLI and curl.
- Browser
- Download file 646 Bytes
-
https://huggingface.co/datasets/neurodeskorg/webapps/resolve/main/hmc/reference/scripts/epic/launch.sh
- Command line
-
hf download hf://datasets/neurodeskorg/webapps/hmc/reference/scripts/epic/launch.sh
-
curl -L -o launch.sh https://huggingface.co/datasets/neurodeskorg/webapps/resolve/main/hmc/reference/scripts/epic/launch.sh
646 Bytes
| # Start runs e1, e2, e3 in parallel on epic, each in its own memory-capped scope. | |
| set -euo pipefail | |
| ROOT=$HOME/scratch/hmc-m0-reference-runs | |
| NPROCS=${NPROCS:-10} | |
| CAP=${CAP:-28G} | |
| cd "$ROOT/runs" | |
| for NAME in e1 e2 e3; do | |
| echo "MemAvailable_kB=$(awk '/MemAvailable/ {print $2}' /proc/meminfo) cap=$CAP nprocs=$NPROCS" > "qsiprep-$NAME.driver.log" | |
| MEMCAP=$CAP nohup systemd-run --user --scope -q --unit="qsiprep-$NAME" \ | |
| -p MemoryMax="$CAP" -p MemorySwapMax=0 \ | |
| bash "$ROOT/scripts/run-qsiprep.sh" "$NAME" "$NPROCS" >> "qsiprep-$NAME.driver.log" 2>&1 & | |
| done | |
| sleep 5 | |
| systemctl --user list-units 'qsiprep-*' --no-legend | |