diff options
| author | YurenHao0426 <blackhao0426@gmail.com> | 2026-01-13 23:50:59 -0600 |
|---|---|---|
| committer | YurenHao0426 <blackhao0426@gmail.com> | 2026-01-13 23:50:59 -0600 |
| commit | 00cf667cee7ffacb144d5805fc7e0ef443f3583a (patch) | |
| tree | 77d20a3adaecf96bf3aff0612bdd3b5fa1a7dc7e /scripts/submit.sh | |
| parent | c53c04aa1d6ff75cb478a9498c370baa929c74b6 (diff) | |
| parent | cd99d6b874d9d09b3bb87b8485cc787885af71f1 (diff) | |
Merge master into main
Diffstat (limited to 'scripts/submit.sh')
| -rwxr-xr-x | scripts/submit.sh | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/scripts/submit.sh b/scripts/submit.sh new file mode 100755 index 0000000..e70d685 --- /dev/null +++ b/scripts/submit.sh @@ -0,0 +1,55 @@ +#!/bin/bash +# ============================================================ +# Helper script to submit SLURM jobs +# ============================================================ +# +# Usage: +# ./scripts/submit.sh test # Quick interactive test +# ./scripts/submit.sh synthetic # Full synthetic experiment +# ./scripts/submit.sh shd # Full SHD experiment +# ./scripts/submit.sh custom # Show custom submission example +# ============================================================ + +set -e +cd "$(dirname "$0")/.." + +case "$1" in + test) + echo "Submitting quick test job (interactive partition)..." + sbatch scripts/test_interactive.sbatch + ;; + synthetic) + echo "Submitting synthetic data experiment..." + sbatch scripts/run_depth_experiment.sbatch + ;; + shd) + echo "Submitting SHD experiment..." + sbatch scripts/run_depth_experiment_shd.sbatch + ;; + custom) + echo "Custom submission example:" + echo "" + echo " # Override parameters:" + echo " sbatch --export=EPOCHS=100,DEPTHS=\"1 2 4 8\",LAMBDA_REG=0.2 scripts/run_depth_experiment.sbatch" + echo "" + echo " # Use different partition:" + echo " sbatch --partition=gpuA100x4 scripts/run_depth_experiment.sbatch" + echo "" + echo " # Use H200 GPUs for faster training:" + echo " sbatch --partition=gpuH200x8 scripts/run_depth_experiment_shd.sbatch" + ;; + status) + echo "Your current jobs:" + squeue -u $USER + ;; + *) + echo "Usage: $0 {test|synthetic|shd|custom|status}" + echo "" + echo " test - Quick test on interactive partition (~5 min)" + echo " synthetic - Full experiment with synthetic data (~2 hours)" + echo " shd - Full experiment with SHD dataset (~4 hours)" + echo " custom - Show custom submission examples" + echo " status - Show your current jobs" + exit 1 + ;; +esac |
