diff --git a/scripts/slurmint.sh b/scripts/slurmint.sh index 4d0c013c9..04309f817 100755 --- a/scripts/slurmint.sh +++ b/scripts/slurmint.sh @@ -20,7 +20,7 @@ if [[ -z "${SLURM_INSTANCE_MASTER}" ]]; then fi JOB="$USER-$(uuidgen)" -DIR="/home/ubuntu/integ-tests/$JOB" +DIR="integ-tests/$JOB" VENV="$DIR/venv" function run_cmd { @@ -45,7 +45,7 @@ SCRIPT="scripts/slurmtest.sh" REMOTE_SCRIPT="$DIR/$(basename "$SCRIPT")" run_cmd mkdir -p "$DIR" -run_cmd virtualenv -p /home/ubuntu/miniconda3/bin/python "$VENV" +run_cmd miniconda3/bin/python -m venv "$VENV" run_scp "$WHEEL" "$REMOTE_WHEEL" run_scp "$SCRIPT" "$REMOTE_SCRIPT" run_cmd "$REMOTE_SCRIPT" "$REMOTE_WHEEL" "$VENV" diff --git a/scripts/slurmtest.sh b/scripts/slurmtest.sh index 89c217209..262ae5ed3 100755 --- a/scripts/slurmtest.sh +++ b/scripts/slurmtest.sh @@ -7,8 +7,8 @@ set -ex -REMOTE_WHEEL="$1" -VENV="$2" +REMOTE_WHEEL="$(realpath $1)" +VENV="$(realpath $2)" BASE_DIR="$(dirname "$REMOTE_WHEEL")" DIR="$BASE_DIR/project" @@ -30,7 +30,7 @@ pip install torch==1.10.2+cpu -f https://download.pytorch.org/whl/cpu/torch_stab cat < .torchxconfig [slurm] -partition=compute +partition=queue1 time=10 comment=hello job_dir=$JOB_DIR