diff options
| author | YurenHao0426 <Blackhao0426@gmail.com> | 2026-06-29 12:04:47 -0500 |
|---|---|---|
| committer | YurenHao0426 <Blackhao0426@gmail.com> | 2026-06-29 12:04:47 -0500 |
| commit | c54ddb88b532be28ca3096e21de405d90163ecfa (patch) | |
| tree | 3270ec9269dbee14ea915963f0d28e933303d5a7 /rrog/run_zinc_gine_after_pid.sh | |
| parent | d12722525fc010a3910b5152c72654a2ade5eac4 (diff) | |
Package full RRoG GNN project
Diffstat (limited to 'rrog/run_zinc_gine_after_pid.sh')
| -rwxr-xr-x | rrog/run_zinc_gine_after_pid.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/rrog/run_zinc_gine_after_pid.sh b/rrog/run_zinc_gine_after_pid.sh new file mode 100755 index 0000000..a4d24ae --- /dev/null +++ b/rrog/run_zinc_gine_after_pid.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +set -euo pipefail + +WAIT_PID="${1:?usage: run_zinc_gine_after_pid.sh <pid>}" +ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +cd "${ROOT_DIR}" + +echo "[wait] OGB queue pid=${WAIT_PID}" +while kill -0 "${WAIT_PID}" 2>/dev/null; do + sleep 60 +done + +echo "[start] OGB queue exited; launching ZINC gine" +DEVICE="${DEVICE:-cuda:1}" EPOCHS="${EPOCHS:-200}" SEED="${SEED:-0}" ./rrog/run_zinc_gine.sh |
