Skip to content

Commit e8cd9f9

Browse files
committed
Update
[ghstack-poisoned]
2 parents 566c09f + 46f2c0e commit e8cd9f9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+659
-292
lines changed

.github/unittest/linux_libs/scripts_ataridqn/install.sh

+3-5
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ unset PYTORCH_VERSION
44
# For unittest, nightly PyTorch is used as the following section,
55
# so no need to set PYTORCH_VERSION.
66
# In fact, keeping PYTORCH_VERSION forces us to hardcode PyTorch version in config.
7-
apt-get update && apt-get install -y git wget gcc g++
8-
#apt-get update && apt-get install -y git wget freeglut3 freeglut3-dev
97

108
set -e
119

@@ -28,18 +26,18 @@ fi
2826
# submodules
2927
git submodule sync && git submodule update --init --recursive
3028

31-
printf "Installing PyTorch with cu124"
29+
printf "Installing PyTorch with cu128"
3230
if [[ "$TORCH_VERSION" == "nightly" ]]; then
3331
if [ "${CU_VERSION:-}" == cpu ] ; then
3432
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu -U
3533
else
36-
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu124 -U
34+
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu128 -U
3735
fi
3836
elif [[ "$TORCH_VERSION" == "stable" ]]; then
3937
if [ "${CU_VERSION:-}" == cpu ] ; then
4038
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cpu
4139
else
42-
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu124
40+
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu128
4341
fi
4442
else
4543
printf "Failed to install pytorch"

.github/unittest/linux_libs/scripts_ataridqn/setup_env.sh

+23-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,31 @@
88
set -e
99
set -v
1010

11-
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
12-
# Avoid error: "fatal: unsafe repository"
13-
apt-get update && apt-get install -y git wget gcc g++ unzip curl
1411

12+
apt-get update && apt-get upgrade -y && apt-get install -y git
13+
# Avoid error: "fatal: unsafe repository"
1514
git config --global --add safe.directory '*'
15+
apt-get install -y wget \
16+
gcc \
17+
g++ \
18+
unzip \
19+
curl \
20+
patchelf \
21+
libosmesa6-dev \
22+
libgl1-mesa-glx \
23+
libglfw3 \
24+
swig3.0 \
25+
libglew-dev \
26+
libglvnd0 \
27+
libgl1 \
28+
libglx0 \
29+
libegl1 \
30+
libgles2
31+
32+
# Upgrade specific package
33+
apt-get upgrade -y libstdc++6
34+
35+
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
1636
root_dir="$(git rev-parse --show-toplevel)"
1737
conda_dir="${root_dir}/conda"
1838
env_dir="${root_dir}/env"

.github/unittest/linux_libs/scripts_brax/install.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ fi
2525
# submodules
2626
git submodule sync && git submodule update --init --recursive
2727

28-
printf "Installing PyTorch with cu124"
28+
printf "Installing PyTorch with cu128"
2929
if [[ "$TORCH_VERSION" == "nightly" ]]; then
3030
if [ "${CU_VERSION:-}" == cpu ] ; then
3131
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu -U
3232
else
33-
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu124 -U
33+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu128 -U
3434
fi
3535
elif [[ "$TORCH_VERSION" == "stable" ]]; then
3636
if [ "${CU_VERSION:-}" == cpu ] ; then
3737
pip3 install torch --index-url https://download.pytorch.org/whl/cpu -U
3838
else
39-
pip3 install torch --index-url https://download.pytorch.org/whl/cu124
39+
pip3 install torch --index-url https://download.pytorch.org/whl/cu128
4040
fi
4141
else
4242
printf "Failed to install pytorch"

.github/unittest/linux_libs/scripts_brax/run_all.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
set -euxo pipefail
44

5-
yum makecache
6-
yum install -y glfw glew mesa-libGL mesa-libGL-devel mesa-libOSMesa-devel egl-utils freeglut
5+
apt update
6+
apt install -y libglfw3 libglfw3-dev libglew-dev libgl1-mesa-glx libgl1-mesa-dev mesa-common-dev libegl1-mesa-dev freeglut3 freeglut3-dev
77

88
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
99
bash ${this_dir}/setup_env.sh

.github/unittest/linux_libs/scripts_brax/setup_env.sh

+22-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,30 @@
77

88
set -euxo pipefail
99

10-
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
10+
apt-get update && apt-get upgrade -y && apt-get install -y git
1111
# Avoid error: "fatal: unsafe repository"
1212
git config --global --add safe.directory '*'
13+
apt-get install -y wget \
14+
gcc \
15+
g++ \
16+
unzip \
17+
curl \
18+
patchelf \
19+
libosmesa6-dev \
20+
libgl1-mesa-glx \
21+
libglfw3 \
22+
swig3.0 \
23+
libglew-dev \
24+
libglvnd0 \
25+
libgl1 \
26+
libglx0 \
27+
libegl1 \
28+
libgles2
29+
30+
# Upgrade specific package
31+
apt-get upgrade -y libstdc++6
32+
33+
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
1334
root_dir="$(git rev-parse --show-toplevel)"
1435
conda_dir="${root_dir}/conda"
1536
env_dir="${root_dir}/env"

.github/unittest/linux_libs/scripts_chess/install.sh

+19-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ unset PYTORCH_VERSION
44
# For unittest, nightly PyTorch is used as the following section,
55
# so no need to set PYTORCH_VERSION.
66
# In fact, keeping PYTORCH_VERSION forces us to hardcode PyTorch version in config.
7+
apt-get update && apt-get install -y \
8+
git \
9+
wget \
10+
gcc \
11+
g++ \
12+
patchelf \
13+
libosmesa6-dev \
14+
libgl1-mesa-glx \
15+
libglfw3 \
16+
swig3.0 \
17+
libglew-dev \
18+
libglvnd0 \
19+
libgl1 \
20+
libglx0 \
21+
libegl1 \
22+
libgles2
723

824
set -e
925

@@ -25,18 +41,18 @@ fi
2541
# submodules
2642
git submodule sync && git submodule update --init --recursive
2743

28-
printf "Installing PyTorch with cu124"
44+
printf "Installing PyTorch with cu128"
2945
if [[ "$TORCH_VERSION" == "nightly" ]]; then
3046
if [ "${CU_VERSION:-}" == cpu ] ; then
3147
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu -U
3248
else
33-
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu124 -U
49+
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu128 -U
3450
fi
3551
elif [[ "$TORCH_VERSION" == "stable" ]]; then
3652
if [ "${CU_VERSION:-}" == cpu ] ; then
3753
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cpu
3854
else
39-
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu124
55+
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu128
4056
fi
4157
else
4258
printf "Failed to install pytorch"

.github/unittest/linux_libs/scripts_chess/setup_env.sh

+19-3
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,27 @@ set -e
99
set -v
1010

1111
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
12-
yum install cairo-devel -y
13-
12+
apt-get update && apt-get upgrade -y && apt-get install -y git
1413
# Avoid error: "fatal: unsafe repository"
15-
1614
git config --global --add safe.directory '*'
15+
apt-get install -y wget \
16+
gcc \
17+
g++ \
18+
unzip \
19+
curl \
20+
patchelf \
21+
libosmesa6-dev \
22+
libgl1-mesa-glx \
23+
libglfw3 \
24+
swig3.0 \
25+
libglew-dev \
26+
libglvnd0 \
27+
libgl1 \
28+
libglx0 \
29+
libegl1 \
30+
libgles2 \
31+
libcairo2-dev
32+
1733
root_dir="$(git rev-parse --show-toplevel)"
1834
conda_dir="${root_dir}/conda"
1935
env_dir="${root_dir}/env"

.github/unittest/linux_libs/scripts_d4rl/install.sh

+3-5
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ unset PYTORCH_VERSION
44
# For unittest, nightly PyTorch is used as the following section,
55
# so no need to set PYTORCH_VERSION.
66
# In fact, keeping PYTORCH_VERSION forces us to hardcode PyTorch version in config.
7-
apt-get update && apt-get install -y git wget gcc g++
8-
#apt-get update && apt-get install -y git wget freeglut3 freeglut3-dev
97

108
set -e
119

@@ -28,18 +26,18 @@ fi
2826
# submodules
2927
git submodule sync && git submodule update --init --recursive
3028

31-
printf "Installing PyTorch with cu124"
29+
printf "Installing PyTorch with cu128"
3230
if [[ "$TORCH_VERSION" == "nightly" ]]; then
3331
if [ "${CU_VERSION:-}" == cpu ] ; then
3432
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu -U
3533
else
36-
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu124 -U
34+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu128 -U
3735
fi
3836
elif [[ "$TORCH_VERSION" == "stable" ]]; then
3937
if [ "${CU_VERSION:-}" == cpu ] ; then
4038
pip3 install torch --index-url https://download.pytorch.org/whl/cpu
4139
else
42-
pip3 install torch --index-url https://download.pytorch.org/whl/cu124
40+
pip3 install torch --index-url https://download.pytorch.org/whl/cu128
4341
fi
4442
else
4543
printf "Failed to install pytorch"

.github/unittest/linux_libs/scripts_d4rl/setup_env.sh

+30-5
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,33 @@ set -e
99
set -v
1010

1111
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
12+
apt-get update && apt-get upgrade -y && apt-get install -y git
1213
# Avoid error: "fatal: unsafe repository"
13-
apt-get update && apt-get install -y git wget gcc g++ unzip
14-
1514
git config --global --add safe.directory '*'
15+
apt-get install -y wget \
16+
gcc \
17+
g++ \
18+
unzip \
19+
curl \
20+
patchelf \
21+
libosmesa6-dev \
22+
libgl1-mesa-glx \
23+
libglfw3 \
24+
swig3.0 \
25+
libglew-dev \
26+
libglvnd0 \
27+
libgl1 \
28+
libglx0 \
29+
libegl1 \
30+
libgles2
31+
32+
# Upgrade specific package
33+
apt-get upgrade -y libstdc++6
34+
35+
cd /usr/lib/x86_64-linux-gnu
36+
ln -s libglut.so.3.12 libglut.so.3
37+
cd $this_dir
38+
1639
root_dir="$(git rev-parse --show-toplevel)"
1740
conda_dir="${root_dir}/conda"
1841
env_dir="${root_dir}/env"
@@ -78,9 +101,9 @@ pip3 install pip --upgrade
78101
if [[ $OSTYPE == 'darwin'* ]]; then
79102
PRIVATE_MUJOCO_GL=glfw
80103
elif [ "${CU_VERSION:-}" == cpu ]; then
81-
PRIVATE_MUJOCO_GL=osmesa
104+
PRIVATE_MUJOCO_GL=egl
82105
else
83-
PRIVATE_MUJOCO_GL=osmesa
106+
PRIVATE_MUJOCO_GL=egl
84107
fi
85108

86109
export MUJOCO_GL=$PRIVATE_MUJOCO_GL
@@ -94,6 +117,8 @@ conda env config vars set \
94117
SDL_VIDEODRIVER=dummy \
95118
MUJOCO_GL=$PRIVATE_MUJOCO_GL \
96119
PYOPENGL_PLATFORM=$PRIVATE_MUJOCO_GL \
97-
TOKENIZERS_PARALLELISM=true
120+
TOKENIZERS_PARALLELISM=true \
121+
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6
122+
98123

99124
conda env update --file "${this_dir}/environment.yml" --prune

.github/unittest/linux_libs/scripts_envpool/install.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ fi
2626
# submodules
2727
git submodule sync && git submodule update --init --recursive
2828

29-
printf "Installing PyTorch with cu124"
29+
printf "Installing PyTorch with cu128"
3030
if [ "${CU_VERSION:-}" == cpu ] ; then
3131
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cpu -U
3232
else
33-
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu124 -U
33+
pip3 install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu128 -U
3434
fi
3535

3636
# smoke test

.github/unittest/linux_libs/scripts_envpool/setup_env.sh

+27-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,31 @@
66
# Do not install PyTorch and torchvision here, otherwise they also get cached.
77

88
set -e
9-
10-
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
9+
apt-get update && apt-get upgrade -y && apt-get install -y git
1110
# Avoid error: "fatal: unsafe repository"
1211
git config --global --add safe.directory '*'
12+
apt-get install -y wget \
13+
gcc \
14+
g++ \
15+
unzip \
16+
curl \
17+
patchelf \
18+
libosmesa6-dev \
19+
libgl1-mesa-glx \
20+
libglfw3 \
21+
swig3.0 \
22+
libglew-dev \
23+
libglvnd0 \
24+
libgl1 \
25+
libglx0 \
26+
libegl1 \
27+
libgles2
28+
29+
30+
# Upgrade specific package
31+
apt-get upgrade -y libstdc++6
32+
33+
this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
1334
root_dir="$(git rev-parse --show-toplevel)"
1435
conda_dir="${root_dir}/conda"
1536
env_dir="${root_dir}/env"
@@ -47,7 +68,10 @@ pip install pip --upgrade
4768

4869
conda env update --file "${this_dir}/environment.yml" --prune
4970

50-
yum install -y mesa-libGL
71+
apt update
72+
conda env config vars set \
73+
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 \
74+
MUJOCO_GL=egl
5175

5276
conda deactivate
5377
conda activate "${env_dir}"

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

+3-5
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ unset PYTORCH_VERSION
44
# For unittest, nightly PyTorch is used as the following section,
55
# so no need to set PYTORCH_VERSION.
66
# In fact, keeping PYTORCH_VERSION forces us to hardcode PyTorch version in config.
7-
apt-get update && apt-get install -y git wget gcc g++
8-
#apt-get update && apt-get install -y git wget freeglut3 freeglut3-dev
97

108
set -e
119

@@ -28,18 +26,18 @@ fi
2826
# submodules
2927
git submodule sync && git submodule update --init --recursive
3028

31-
printf "Installing PyTorch with cu124"
29+
printf "Installing PyTorch with cu128"
3230
if [[ "$TORCH_VERSION" == "nightly" ]]; then
3331
if [ "${CU_VERSION:-}" == cpu ] ; then
3432
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu -U
3533
else
36-
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu124 -U
34+
pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu128 -U
3735
fi
3836
elif [[ "$TORCH_VERSION" == "stable" ]]; then
3937
if [ "${CU_VERSION:-}" == cpu ] ; then
4038
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cpu
4139
else
42-
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu124
40+
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu128
4341
fi
4442
else
4543
printf "Failed to install pytorch"

0 commit comments

Comments
 (0)