File tree 9 files changed +12
-12
lines changed
linux_distributed/scripts
linux_olddeps/scripts_gym_0_13
9 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ if [[ $OSTYPE != 'darwin'* ]]; then
12
12
apt-get install -y vim git wget libsdl2-dev libsdl2-2.0-0 cmake
13
13
14
14
apt-get install -y libglfw3 libgl1-mesa-glx libosmesa6 libglew-dev
15
- apt-get install -y libglvnd0 libgl1 libglx0 libegl1 libgles2
15
+ apt-get install -y libglvnd0 libgl1 libglx0 libegl1 libgles2 xvfb
16
16
17
17
if [ " ${CU_VERSION:- } " == cpu ] ; then
18
18
# solves version `GLIBCXX_3.4.29' not found for tensorboard
76
76
export MUJOCO_GL=egl
77
77
fi
78
78
79
- export DISPLAY=:0
80
79
export SDL_VIDEODRIVER=dummy
81
80
82
81
# legacy from bash scripts: remove?
83
82
conda env config vars set \
84
83
MAX_IDLE_COUNT=1000 \
85
- MUJOCO_GL=$MUJOCO_GL PYOPENGL_PLATFORM=$MUJOCO_GL DISPLAY=:0 SDL_VIDEODRIVER=dummy LAZY_LEGACY_OP=False RL_LOGGING_LEVEL=DEBUG TOKENIZERS_PARALLELISM=true
84
+ MUJOCO_GL=$MUJOCO_GL PYOPENGL_PLATFORM=$MUJOCO_GL DISPLAY=:99 SDL_VIDEODRIVER=dummy LAZY_LEGACY_OP=False RL_LOGGING_LEVEL=DEBUG TOKENIZERS_PARALLELISM=true
86
85
87
86
pip3 install pip --upgrade
88
87
pip install virtualenv
@@ -202,6 +201,8 @@ export CKPT_BACKEND=torch
202
201
export MAX_IDLE_COUNT=100
203
202
export BATCHED_PIPE_TIMEOUT=60
204
203
204
+ Xvfb :99 -screen 0 1024x768x24 &
205
+
205
206
pytest test/smoke_test.py -v --durations 200
206
207
pytest test/smoke_test_deps.py -v --durations 200 -k ' test_gym or test_dm_control_pixels or test_dm_control or test_tb'
207
208
if [ " ${CU_VERSION:- } " != cpu ] ; then
Original file line number Diff line number Diff line change 65
65
export MUJOCO_GL=$PRIVATE_MUJOCO_GL
66
66
conda env config vars set MUJOCO_PY_MUJOCO_PATH=$root_dir /.mujoco/mujoco210 \
67
67
MAX_IDLE_COUNT=1000 \
68
- DISPLAY=unix:0.0 \
68
+ DISPLAY=:99 \
69
69
MJLIB_PATH=$root_dir /.mujoco/mujoco-2.1.1/lib/libmujoco.so.2.1.1 \
70
70
LD_LIBRARY_PATH=$LD_LIBRARY_PATH :$root_dir /.mujoco/mujoco210/bin \
71
71
SDL_VIDEODRIVER=dummy \
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ export MUJOCO_GL=$PRIVATE_MUJOCO_GL
110
110
conda env config vars set \
111
111
MAX_IDLE_COUNT=1000 \
112
112
MUJOCO_PY_MUJOCO_PATH=$root_dir /.mujoco/mujoco200_linux \
113
- DISPLAY=unix:0.0 \
113
+ DISPLAY=:99 \
114
114
MJLIB_PATH=$root_dir /.mujoco/mujoco200_linux/bin/libmujoco200.so \
115
115
LD_LIBRARY_PATH=$LD_LIBRARY_PATH :$root_dir /.mujoco/mujoco200_linux/bin \
116
116
MUJOCO_PY_MJKEY_PATH=$root_dir /.mujoco/mjkey.txt \
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export MKL_THREADING_LAYER=GNU
21
21
python .github/unittest/helpers/coverage_run_parallel.py -m pytest test/smoke_test.py -v --durations 200
22
22
python .github/unittest/helpers/coverage_run_parallel.py -m pytest test/smoke_test_deps.py -v --durations 200 -k ' test_gym'
23
23
24
- export DISPLAY=' :99.0 '
24
+ export DISPLAY=:99
25
25
Xvfb :99 -screen 0 1400x900x24 > /dev/null 2>&1 &
26
26
python .github/unittest/helpers/coverage_run_parallel.py -m pytest test/test_libs.py --instafail -v --durations 200 -k " gym and not isaac" --error-for-skips --mp_fork
27
27
coverage combine
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ conda env config vars set \
74
74
MAX_IDLE_COUNT=1000 \
75
75
MUJOCO_GL=egl \
76
76
SDL_VIDEODRIVER=dummy \
77
- DISPLAY=unix:0.0 \
77
+ DISPLAY=:99 \
78
78
PYOPENGL_PLATFORM=egl \
79
79
LD_PRELOAD=$glew_path \
80
80
NVIDIA_PATH=/usr/src/nvidia-470.63.01 \
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ conda env config vars set \
64
64
MAX_IDLE_COUNT=1000 \
65
65
MUJOCO_GL=egl \
66
66
SDL_VIDEODRIVER=dummy \
67
- DISPLAY=unix:0.0 \
67
+ DISPLAY=:99 \
68
68
PYOPENGL_PLATFORM=egl \
69
69
NVIDIA_PATH=/usr/src/nvidia-470.63.01 \
70
70
sim_backend=MUJOCO \
Original file line number Diff line number Diff line change @@ -25,8 +25,9 @@ export BATCHED_PIPE_TIMEOUT=60
25
25
python .github/unittest/helpers/coverage_run_parallel.py -m pytest test/smoke_test.py -v --durations 200
26
26
python .github/unittest/helpers/coverage_run_parallel.py -m pytest test/smoke_test_deps.py -v --durations 200 -k ' test_gym'
27
27
28
- export DISPLAY=' :99.0 '
28
+ export DISPLAY=:99
29
29
Xvfb :99 -screen 0 1400x900x24 > /dev/null 2>&1 &
30
+
30
31
CKPT_BACKEND=torch MUJOCO_GL=egl python .github/unittest/helpers/coverage_run_parallel.py -m pytest --instafail -v --durations 200 --ignore test/test_distributed.py --ignore test/test_rlhf.py
31
32
# pytest --instafail -v --durations 200
32
33
# python test/test_libs.py
Original file line number Diff line number Diff line change @@ -68,7 +68,6 @@ echo " - python=${PYTHON_VERSION}" >> "${this_dir}/environment.yml"
68
68
cat " ${this_dir} /environment.yml"
69
69
70
70
export MUJOCO_PY_MUJOCO_PATH=$root_dir /.mujoco/mujoco210
71
- export DISPLAY=unix:0.0
72
71
# export MJLIB_PATH=$root_dir/.mujoco/mujoco-2.1.1/lib/libmujoco.so.2.1.1
73
72
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH :$root_dir /.mujoco/mujoco210/bin
74
73
export SDL_VIDEODRIVER=dummy
@@ -80,7 +79,7 @@ export COMPOSITE_LP_AGGREGATE=0
80
79
conda env config vars set \
81
80
MAX_IDLE_COUNT=1000 \
82
81
MUJOCO_PY_MUJOCO_PATH=$root_dir /.mujoco/mujoco210 \
83
- DISPLAY=unix:0.0 \
82
+ DISPLAY=:99 \
84
83
LD_LIBRARY_PATH=$LD_LIBRARY_PATH :$root_dir /.mujoco/mujoco210/bin \
85
84
SDL_VIDEODRIVER=dummy \
86
85
MUJOCO_GL=egl \
Original file line number Diff line number Diff line change 47
47
yum install -y xorg-x11-server-Xvfb
48
48
# xhost +local:docker
49
49
# Xvfb :1 -screen 0 1024x768x24 &
50
- # export DISPLAY=:1
51
50
52
51
root_dir="$(pwd)"
53
52
conda_dir="${root_dir}/conda"
You can’t perform that action at this time.
0 commit comments