Skip to content

Commit 9da61f2

Browse files
author
Vincent Moens
authored
[Refactor] LAZY_LEGACY_OP=False (#1832)
1 parent c2fae32 commit 9da61f2

File tree

40 files changed

+79
-36
lines changed

40 files changed

+79
-36
lines changed

.github/unittest/linux/scripts/run_all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export DISPLAY=:0
7676
export SDL_VIDEODRIVER=dummy
7777

7878
# legacy from bash scripts: remove?
79-
conda env config vars set MUJOCO_GL=$MUJOCO_GL PYOPENGL_PLATFORM=$MUJOCO_GL DISPLAY=:0 SDL_VIDEODRIVER=dummy
79+
conda env config vars set MUJOCO_GL=$MUJOCO_GL PYOPENGL_PLATFORM=$MUJOCO_GL DISPLAY=:0 SDL_VIDEODRIVER=dummy LAZY_LEGACY_OP=False
8080

8181
pip3 install pip --upgrade
8282
pip install virtualenv

.github/unittest/linux_distributed/scripts/run_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ lib_dir="${env_dir}/lib"
1818
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$lib_dir
1919
export MKL_THREADING_LAYER=GNU
2020
export CKPT_BACKEND=torch
21+
export LAZY_LEGACY_OP=False
2122
export BATCHED_PIPE_TIMEOUT=60
2223

2324
python .github/unittest/helpers/coverage_run_parallel.py -m pytest test/smoke_test.py -v --durations 200

.github/unittest/linux_examples/scripts/run_all.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$root_dir/.mujoco/mujoco210/bin
7474
export SDL_VIDEODRIVER=dummy
7575
export MUJOCO_GL=egl
7676
export PYOPENGL_PLATFORM=egl
77+
export LAZY_LEGACY_OP=False
7778

7879
conda env config vars set MUJOCO_PY_MUJOCO_PATH=$root_dir/.mujoco/mujoco210 \
7980
DISPLAY=unix:0.0 \

.github/unittest/linux_libs/scripts_ataridqn/run_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ conda activate ./env
88
apt-get update && apt-get remove swig -y && apt-get install -y git gcc patchelf libosmesa6-dev libgl1-mesa-glx libglfw3 swig3.0
99
ln -s /usr/bin/swig3.0 /usr/bin/swig
1010

11+
export LAZY_LEGACY_OP=False
1112
export PYTORCH_TEST_WITH_SLOW='1'
1213
python -m torch.utils.collect_env
1314
# Avoid error: "fatal: unsafe repository"

.github/unittest/linux_libs/scripts_brax/run_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ conda activate ./env
77

88

99
export PYTORCH_TEST_WITH_SLOW='1'
10+
export LAZY_LEGACY_OP=False
1011
python -m torch.utils.collect_env
1112
# Avoid error: "fatal: unsafe repository"
1213
git config --global --add safe.directory '*'

.github/unittest/linux_libs/scripts_d4rl/run_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ cd ..
2424
#cd ..
2525

2626
export PYTORCH_TEST_WITH_SLOW='1'
27+
export LAZY_LEGACY_OP=False
2728
python -m torch.utils.collect_env
2829
# Avoid error: "fatal: unsafe repository"
2930
git config --global --add safe.directory '*'

.github/unittest/linux_libs/scripts_envpool/run_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ eval "$(./conda/bin/conda shell.bash hook)"
1212
conda activate ./env
1313

1414
export PYTORCH_TEST_WITH_SLOW='1'
15+
export LAZY_LEGACY_OP=False
1516
python -m torch.utils.collect_env
1617
# Avoid error: "fatal: unsafe repository"
1718
git config --global --add safe.directory '*'

.github/unittest/linux_libs/scripts_gen-dgrl/run_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ apt-get update && apt-get remove swig -y && apt-get install -y git gcc patchelf
99
ln -s /usr/bin/swig3.0 /usr/bin/swig
1010

1111
export PYTORCH_TEST_WITH_SLOW='1'
12+
export LAZY_LEGACY_OP=False
1213
python -m torch.utils.collect_env
1314
# Avoid error: "fatal: unsafe repository"
1415
git config --global --add safe.directory '*'

.github/unittest/linux_libs/scripts_gym/run_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ eval "$(./conda/bin/conda shell.bash hook)"
66
conda activate ./env
77

88
export PYTORCH_TEST_WITH_SLOW='1'
9+
export LAZY_LEGACY_OP=False
910
python -m torch.utils.collect_env
1011
# Avoid error: "fatal: unsafe repository"
1112
git config --global --add safe.directory '*'

.github/unittest/linux_libs/scripts_habitat/run_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ conda env config vars set LD_PRELOAD=$LD_PRELOAD:$STDC_LOC
1616
STDC_LOC=$(find conda/ -name "libstdc++.so.6" | head -1)
1717

1818
export PYTORCH_TEST_WITH_SLOW='1'
19+
export LAZY_LEGACY_OP=False
1920
python -m torch.utils.collect_env
2021
# Avoid error: "fatal: unsafe repository"
2122
git config --global --add safe.directory '*'

0 commit comments

Comments
 (0)