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}"
3636if [ " ${CU_VERSION:- } " == cpu ] ; then
3737 # conda install -y pytorch torchvision cpuonly -c pytorch-nightly
3838 # 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
4041else
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
4244fi
4345
4446printf " Installing functorch\n"
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ if [[ $OSTYPE == 'darwin'* ]]; then
5757 PRIVATE_MUJOCO_GL=glfw
5858else
5959 conda install -y -c conda-forge mesa
60- conda install -y -c menpo osmesa
60+ conda install -y -c conda-forge mesalib
6161 PRIVATE_MUJOCO_GL=osmesa
6262fi
6363
Original file line number Diff line number Diff line change @@ -36,9 +36,11 @@ printf "Installing PyTorch with %s\n" "${CU_VERSION}"
3636if [ " ${CU_VERSION:- } " == cpu ] ; then
3737 # conda install -y pytorch torchvision cpuonly -c pytorch-nightly
3838 # 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
4041else
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
4244fi
4345
4446printf " 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}"
3737if [ " ${CU_VERSION:- } " == cpu ] ; then
3838 # conda install -y pytorch torchvision cpuonly -c pytorch-nightly
3939 # 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
4142else
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
4345fi
4446
4547printf " Installing functorch\n"
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ if [[ $OSTYPE == 'darwin'* ]]; then
5858 PRIVATE_MUJOCO_GL=glfw
5959else
6060 conda install -y -c conda-forge mesa
61- conda install -y -c menpo osmesa
61+ conda install -y -c conda-forge mesalib
6262 PRIVATE_MUJOCO_GL=osmesa
6363fi
6464
Original file line number Diff line number Diff line change @@ -219,8 +219,6 @@ def test_vecnorm_parallel_auto(nprc):
219219 for idx in range (nprc ):
220220 queues [idx ][1 ].put (msg )
221221
222- for p in prcs :
223- p .join ()
224222 obs_sum = td .get ("next_observation_sum" ).clone ()
225223 obs_ssq = td .get ("next_observation_ssq" ).clone ()
226224 obs_count = td .get ("next_observation_count" ).clone ()
@@ -258,7 +256,10 @@ def test_vecnorm_parallel_auto(nprc):
258256 msg = "all_done"
259257 for idx in range (nprc ):
260258 queues [idx ][1 ].put (msg )
259+
261260 del queues
261+ for p in prcs :
262+ p .join ()
262263
263264
264265def _run_parallelenv (parallel_env , queue_in , queue_out ):
You can’t perform that action at this time.
0 commit comments