Skip to content

Commit ab5a55a

Browse files
committed
update snippet
1 parent e44f35a commit ab5a55a

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

examples/alps-ml-vetting/snippet.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,30 @@
44
#SBATCH --time=0-00:15:00
55
#SBATCH --account=csstaff
66

7+
export ENV_FILE=/users/palmee/vetnode/env.toml
78

8-
srun -N ${SLURM_JOB_NUM_NODES} --tasks-per-node=4 --environment=/users/palmee/vetnode/env.toml --network=disable_rdzv_get --container-writable bash -c '
9+
srun -N ${SLURM_JOB_NUM_NODES} --tasks-per-node=4 --environment=${ENV_FILE} --network=disable_rdzv_get --container-writable bash -c '
910
1011
if [ "${SLURM_LOCALID}" = "0" ]; then
11-
mkdir -p /temp/vetnode-${SLURM_JOB_ID}
12-
cd /temp/vetnode-${SLURM_JOB_ID}
12+
mkdir -p /tmp/vetnode-${SLURM_JOB_ID}
13+
cd /tmp/vetnode-${SLURM_JOB_ID}
1314
wget -q -O config.yaml https://raw.githubusercontent.com/theely/vetnode/refs/heads/main/examples/alps-ml-vetting/config.yaml
1415
python -m venv --system-site-packages .venv
1516
source .venv/bin/activate
1617
pip install -q --no-cache-dir --index-url "https://jfrog.svc.cscs.ch/artifactory/api/pypi/pypi-remote/simple" vetnode
17-
touch /temp/vetnode-${SLURM_JOB_ID}/.setup_done
18+
touch /tmp/vetnode-${SLURM_JOB_ID}/.setup_done
1819
else
19-
while [ ! -f /temp/vetnode-${SLURM_JOB_ID}/.setup_done ]; do
20+
while [ ! -f /tmp/vetnode-${SLURM_JOB_ID}/.setup_done ]; do
2021
sleep 2
2122
done
22-
cd /temp/vetnode-${SLURM_JOB_ID}
23+
cd /tmp/vetnode-${SLURM_JOB_ID}
2324
source .venv/bin/activate
2425
fi
2526
2627
vetnode diagnose config.yaml
2728
2829
if [ "${SLURM_LOCALID}" = "0" ]; then
2930
sleep 5
30-
rm -rf /temp/vetnode-${SLURM_JOB_ID}
31+
rm -rf /tmp/vetnode-${SLURM_JOB_ID}
3132
fi
3233
'

0 commit comments

Comments
 (0)