File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 44# SBATCH --time=0-00:15:00
55# SBATCH --account=csstaff
66
7- export ENV_FILE=/users/palmee/vetnode/env .toml
7+ export ENV_FILE= # Path to the EDF .toml file
88
99srun -N ${SLURM_JOB_NUM_NODES} --tasks-per-node=4 --environment=${ENV_FILE} --network=disable_rdzv_get --container-writable bash -c '
1010
1111 if [ "${SLURM_LOCALID}" = "0" ]; then
12- mkdir -p /tmp/vetnode-${SLURM_JOB_ID}
13- cd /tmp/vetnode-${SLURM_JOB_ID }
12+ tmpdir=$(mktemp -d)
13+ cd ${tmpdir }
1414 wget -q -O config.yaml https://raw.githubusercontent.com/theely/vetnode/refs/heads/main/examples/alps-ml-vetting/config.yaml
1515 python -m venv --system-site-packages .venv
1616 source .venv/bin/activate
1717 pip install -q --no-cache-dir --index-url "https://jfrog.svc.cscs.ch/artifactory/api/pypi/pypi-remote/simple" vetnode
18- touch /tmp/vetnode-${SLURM_JOB_ID }/.setup_done
18+ touch ${tmpdir }/.setup_done
1919 else
20- while [ ! -f /tmp/vetnode-${SLURM_JOB_ID }/.setup_done ]; do
20+ while [ ! -f ${tmpdir }/.setup_done ]; do
2121 sleep 2
2222 done
23- cd /tmp/vetnode-${SLURM_JOB_ID }
23+ cd ${tmpdir }
2424 source .venv/bin/activate
2525 fi
2626
2727 vetnode diagnose config.yaml
2828
2929 if [ "${SLURM_LOCALID}" = "0" ]; then
3030 sleep 5
31- rm -rf /tmp/vetnode-${SLURM_JOB_ID }
31+ rm -rf ${tmpdir }
3232 fi
3333'
You can’t perform that action at this time.
0 commit comments