File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ if [[ -z "${SLURM_INSTANCE_MASTER}" ]]; then
20
20
fi
21
21
22
22
JOB=" $USER -$( uuidgen) "
23
- DIR=" /home/ubuntu/ integ-tests/$JOB "
23
+ DIR=" integ-tests/$JOB "
24
24
VENV=" $DIR /venv"
25
25
26
26
function run_cmd {
@@ -45,7 +45,7 @@ SCRIPT="scripts/slurmtest.sh"
45
45
REMOTE_SCRIPT=" $DIR /$( basename " $SCRIPT " ) "
46
46
47
47
run_cmd mkdir -p " $DIR "
48
- run_cmd virtualenv -p /home/ubuntu/ miniconda3/bin/python " $VENV "
48
+ run_cmd miniconda3/bin/python -m venv " $VENV "
49
49
run_scp " $WHEEL " " $REMOTE_WHEEL "
50
50
run_scp " $SCRIPT " " $REMOTE_SCRIPT "
51
51
run_cmd " $REMOTE_SCRIPT " " $REMOTE_WHEEL " " $VENV "
Original file line number Diff line number Diff line change 7
7
8
8
set -ex
9
9
10
- REMOTE_WHEEL=" $1 "
11
- VENV=" $2 "
10
+ REMOTE_WHEEL=" $( realpath $1 ) "
11
+ VENV=" $( realpath $2 ) "
12
12
13
13
BASE_DIR=" $( dirname " $REMOTE_WHEEL " ) "
14
14
DIR=" $BASE_DIR /project"
@@ -30,7 +30,7 @@ pip install torch==1.10.2+cpu -f https://download.pytorch.org/whl/cpu/torch_stab
30
30
31
31
cat << EOT > .torchxconfig
32
32
[slurm]
33
- partition=compute
33
+ partition=queue1
34
34
time=10
35
35
comment=hello
36
36
job_dir=$JOB_DIR
You can’t perform that action at this time.
0 commit comments