File tree Expand file tree Collapse file tree 6 files changed +17
-10
lines changed Expand file tree Collapse file tree 6 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,11 @@ printf "Installing PyTorch with %s\n" "${CU_VERSION}"
36
36
if [ " ${CU_VERSION:- } " == cpu ] ; then
37
37
# conda install -y pytorch torchvision cpuonly -c pytorch-nightly
38
38
# use pip to install pytorch as conda can frequently pick older release
39
- conda install -y pytorch torchvision cpuonly -c pytorch-nightly
39
+ # conda install -y pytorch torchvision cpuonly -c pytorch-nightly
40
+ pip3 install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu
40
41
else
41
- conda install -y pytorch torchvision cudatoolkit=11.3 -c pytorch-nightly
42
+ # conda install -y pytorch torchvision cudatoolkit=11.3 -c pytorch-nightly
43
+ pip3 install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cu113
42
44
fi
43
45
44
46
printf " Installing functorch\n"
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ if [[ $OSTYPE == 'darwin'* ]]; then
57
57
PRIVATE_MUJOCO_GL=glfw
58
58
else
59
59
conda install -y -c conda-forge mesa
60
- conda install -y -c menpo osmesa
60
+ conda install -y -c conda-forge mesalib
61
61
PRIVATE_MUJOCO_GL=osmesa
62
62
fi
63
63
Original file line number Diff line number Diff line change @@ -36,9 +36,11 @@ printf "Installing PyTorch with %s\n" "${CU_VERSION}"
36
36
if [ " ${CU_VERSION:- } " == cpu ] ; then
37
37
# conda install -y pytorch torchvision cpuonly -c pytorch-nightly
38
38
# use pip to install pytorch as conda can frequently pick older release
39
- conda install -y pytorch cpuonly -c pytorch-nightly
39
+ # conda install -y pytorch cpuonly -c pytorch-nightly
40
+ pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu
40
41
else
41
- conda install -y pytorch cudatoolkit=11.3 -c pytorch-nightly
42
+ # conda install -y pytorch cudatoolkit=11.3 -c pytorch-nightly
43
+ pip3 install --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cu113
42
44
fi
43
45
44
46
printf " Installing functorch\n"
Original file line number Diff line number Diff line change @@ -37,9 +37,11 @@ printf "Installing PyTorch with %s\n" "${CU_VERSION}"
37
37
if [ " ${CU_VERSION:- } " == cpu ] ; then
38
38
# conda install -y pytorch torchvision cpuonly -c pytorch-nightly
39
39
# use pip to install pytorch as conda can frequently pick older release
40
- conda install -y pytorch torchvision cpuonly -c pytorch
40
+ # conda install -y pytorch torchvision cpuonly -c pytorch
41
+ pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu
41
42
else
42
- conda install -y pytorch torchvision cudatoolkit=11.3 -c pytorch
43
+ # conda install -y pytorch torchvision cudatoolkit=11.3 -c pytorch
44
+ pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113
43
45
fi
44
46
45
47
printf " Installing functorch\n"
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ if [[ $OSTYPE == 'darwin'* ]]; then
58
58
PRIVATE_MUJOCO_GL=glfw
59
59
else
60
60
conda install -y -c conda-forge mesa
61
- conda install -y -c menpo osmesa
61
+ conda install -y -c conda-forge mesalib
62
62
PRIVATE_MUJOCO_GL=osmesa
63
63
fi
64
64
Original file line number Diff line number Diff line change @@ -219,8 +219,6 @@ def test_vecnorm_parallel_auto(nprc):
219
219
for idx in range (nprc ):
220
220
queues [idx ][1 ].put (msg )
221
221
222
- for p in prcs :
223
- p .join ()
224
222
obs_sum = td .get ("next_observation_sum" ).clone ()
225
223
obs_ssq = td .get ("next_observation_ssq" ).clone ()
226
224
obs_count = td .get ("next_observation_count" ).clone ()
@@ -258,7 +256,10 @@ def test_vecnorm_parallel_auto(nprc):
258
256
msg = "all_done"
259
257
for idx in range (nprc ):
260
258
queues [idx ][1 ].put (msg )
259
+
261
260
del queues
261
+ for p in prcs :
262
+ p .join ()
262
263
263
264
264
265
def _run_parallelenv (parallel_env , queue_in , queue_out ):
You can’t perform that action at this time.
0 commit comments