Skip to content

Commit f411fc2

Browse files
authored
Update dependency (#286)
1 parent ebd17ee commit f411fc2

File tree

3 files changed

+61
-60
lines changed

3 files changed

+61
-60
lines changed

envpool/core/state_buffer_queue_test.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ TEST(StateBufferQueueTest, Basic) {
2525
std::vector<ShapeSpec> specs{ShapeSpec(1, {10, 2, 4}),
2626
ShapeSpec(4, {1, 2, 2})};
2727
std::size_t batch = 32;
28-
std::size_t num_envs = 500;
28+
std::size_t num_envs = 50;
2929
std::size_t max_num_players = 10;
3030
StateBufferQueue queue(batch, num_envs, max_num_players, specs);
3131
std::srand(std::time(nullptr));

envpool/workspace0.bzl

+59-58
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ load("//third_party/cuda:cuda.bzl", "cuda_configure")
2020

2121
def workspace():
2222
"""Load requested packages."""
23+
# we cannot upgrade rules_python because it requires requirements_lock.txt after 0.13.0
2324
maybe(
2425
http_archive,
2526
name = "rules_python",
@@ -34,45 +35,45 @@ def workspace():
3435
maybe(
3536
http_archive,
3637
name = "rules_foreign_cc",
37-
sha256 = "2a4d07cd64b0719b39a7c12218a3e507672b82a97b98c6a89d38565894cf7c51",
38-
strip_prefix = "rules_foreign_cc-0.9.0",
38+
sha256 = "476303bd0f1b04cc311fc258f1708a5f6ef82d3091e53fd1977fa20383425a6a",
39+
strip_prefix = "rules_foreign_cc-0.10.1",
3940
urls = [
40-
"https://github.com/bazelbuild/rules_foreign_cc/archive/0.9.0.tar.gz",
41-
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/bazelbuild/rules_foreign_cc/0.9.0.tar.gz",
41+
"https://github.com/bazelbuild/rules_foreign_cc/archive/0.10.1.tar.gz",
42+
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/bazelbuild/rules_foreign_cc/0.10.1.tar.gz",
4243
],
4344
)
4445

4546
maybe(
4647
http_archive,
4748
name = "pybind11_bazel",
48-
sha256 = "a185aa68c93b9f62c80fcb3aadc3c83c763854750dc3f38be1dadcb7be223837",
49-
strip_prefix = "pybind11_bazel-faf56fb3df11287f26dbc66fdedf60a2fc2c6631",
49+
sha256 = "2c466c9b3cca7852b47e0785003128984fcf0d5d61a1a2e4c5aceefd935ac220",
50+
strip_prefix = "pybind11_bazel-2.11.1",
5051
urls = [
51-
"https://github.com/pybind/pybind11_bazel/archive/faf56fb3df11287f26dbc66fdedf60a2fc2c6631.zip",
52-
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/pybind/pybind11_bazel/faf56fb3df11287f26dbc66fdedf60a2fc2c6631.zip",
52+
"https://github.com/pybind/pybind11_bazel/archive/refs/tags/v2.11.1.zip",
53+
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/pybind/pybind11_bazel/v2.11.1.zip",
5354
],
5455
)
5556

5657
maybe(
5758
http_archive,
5859
name = "pybind11",
5960
build_file = "@pybind11_bazel//:pybind11.BUILD",
60-
sha256 = "93bd1e625e43e03028a3ea7389bba5d3f9f2596abc074b068e70f4ef9b1314ae",
61-
strip_prefix = "pybind11-2.10.2",
61+
sha256 = "d475978da0cdc2d43b73f30910786759d593a9d8ee05b1b6846d1eb16c6d2e0c",
62+
strip_prefix = "pybind11-2.11.1",
6263
urls = [
63-
"https://github.com/pybind/pybind11/archive/refs/tags/v2.10.2.tar.gz",
64-
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/pybind/pybind11/v2.10.2.tar.gz",
64+
"https://github.com/pybind/pybind11/archive/refs/tags/v2.11.1.tar.gz",
65+
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/pybind/pybind11/v2.11.1.tar.gz",
6566
],
6667
)
6768

6869
maybe(
6970
http_archive,
7071
name = "com_google_absl",
71-
sha256 = "91ac87d30cc6d79f9ab974c51874a704de9c2647c40f6932597329a282217ba8",
72-
strip_prefix = "abseil-cpp-20220623.1",
72+
sha256 = "497ebdc3a4885d9209b9bd416e8c3f71e7a1fb8af249f6c2a80b7cbeefcd7e21",
73+
strip_prefix = "abseil-cpp-20230802.1",
7374
urls = [
74-
"https://github.com/abseil/abseil-cpp/archive/refs/tags/20220623.1.tar.gz",
75-
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/abseil/abseil-cpp/20220623.1.tar.gz",
75+
"https://github.com/abseil/abseil-cpp/archive/refs/tags/20230802.1.zip",
76+
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/abseil/abseil-cpp/20230802.1.zip",
7677
],
7778
)
7879

@@ -101,11 +102,11 @@ def workspace():
101102
maybe(
102103
http_archive,
103104
name = "com_google_googletest",
104-
sha256 = "81964fe578e9bd7c94dfdb09c8e4d6e6759e19967e397dbea48d1c10e45d0df2",
105-
strip_prefix = "googletest-release-1.12.1",
105+
sha256 = "8ad598c73ad796e0d8280b082cebd82a630d73e73cd3c70057938a6501bba5d7",
106+
strip_prefix = "googletest-1.14.0",
106107
urls = [
107-
"https://github.com/google/googletest/archive/refs/tags/release-1.12.1.tar.gz",
108-
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/google/googletest/release-1.12.1.tar.gz",
108+
"https://github.com/google/googletest/archive/refs/tags/v1.14.0.tar.gz",
109+
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/google/googletest/v1.14.0.tar.gz",
109110
],
110111
)
111112

@@ -135,11 +136,11 @@ def workspace():
135136
maybe(
136137
http_archive,
137138
name = "concurrentqueue",
138-
sha256 = "eb37336bf9ae59aca7b954db3350d9b30d1cab24b96c7676f36040aa76e915e8",
139-
strip_prefix = "concurrentqueue-1.0.3",
139+
sha256 = "87fbc9884d60d0d4bf3462c18f4c0ee0a9311d0519341cac7cbd361c885e5281",
140+
strip_prefix = "concurrentqueue-1.0.4",
140141
urls = [
141-
"https://github.com/cameron314/concurrentqueue/archive/refs/tags/v1.0.3.tar.gz",
142-
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/cameron314/concurrentqueue/v1.0.3.tar.gz",
142+
"https://github.com/cameron314/concurrentqueue/archive/refs/tags/v1.0.4.tar.gz",
143+
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/cameron314/concurrentqueue/v1.0.4.tar.gz",
143144
],
144145
build_file = "//third_party/concurrentqueue:concurrentqueue.BUILD",
145146
)
@@ -159,47 +160,47 @@ def workspace():
159160
maybe(
160161
http_archive,
161162
name = "zlib",
162-
sha256 = "b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f846ab30",
163-
strip_prefix = "zlib-1.2.13",
163+
sha256 = "ff0ba4c292013dbc27530b3a81e1f9a813cd39de01ca5e0f8bf355702efa593e",
164+
strip_prefix = "zlib-1.3",
164165
urls = [
165-
"https://github.com/madler/zlib/releases/download/v1.2.13/zlib-1.2.13.tar.gz",
166-
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/madler/zlib/zlib-1.2.13.tar.gz",
166+
"https://github.com/madler/zlib/releases/download/v1.3/zlib-1.3.tar.gz",
167+
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/madler/zlib/zlib-1.3.tar.gz",
167168
],
168169
build_file = "//third_party/zlib:zlib.BUILD",
169170
)
170171

171172
maybe(
172173
http_archive,
173174
name = "opencv",
174-
sha256 = "8df0079cdbe179748a18d44731af62a245a45ebf5085223dc03133954c662973",
175-
strip_prefix = "opencv-4.7.0",
175+
sha256 = "62f650467a60a38794d681ae7e66e3e8cfba38f445e0bf87867e2f2cdc8be9d5",
176+
strip_prefix = "opencv-4.8.1",
176177
urls = [
177-
"https://github.com/opencv/opencv/archive/refs/tags/4.7.0.tar.gz",
178-
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/opencv/opencv/4.7.0.tar.gz",
178+
"https://github.com/opencv/opencv/archive/refs/tags/4.8.1.tar.gz",
179+
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/opencv/opencv/4.8.1.tar.gz",
179180
],
180181
build_file = "//third_party/opencv:opencv.BUILD",
181182
)
182183

183184
maybe(
184185
http_archive,
185186
name = "pugixml",
186-
sha256 = "40c0b3914ec131485640fa57e55bf1136446026b41db91c1bef678186a12abbe",
187-
strip_prefix = "pugixml-1.13/src",
187+
sha256 = "610f98375424b5614754a6f34a491adbddaaec074e9044577d965160ec103d2e",
188+
strip_prefix = "pugixml-1.14/src",
188189
urls = [
189-
"https://github.com/zeux/pugixml/releases/download/v1.13/pugixml-1.13.tar.gz",
190-
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/zeux/pugixml/pugixml-1.13.tar.gz",
190+
"https://github.com/zeux/pugixml/archive/refs/tags/v1.14.tar.gz",
191+
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/zeux/pugixml/v1.14.tar.gz",
191192
],
192193
build_file = "//third_party/pugixml:pugixml.BUILD",
193194
)
194195

195196
maybe(
196197
http_archive,
197198
name = "ale",
198-
sha256 = "9a9f1ad6cd61dfb26895314d409ba69da038b7def295b509964e579027fefd99",
199-
strip_prefix = "Arcade-Learning-Environment-0.8.0",
199+
sha256 = "28960616cd89c18925ced7bbdeec01ab0b2ebd2d8ce5b7c88930e97381b4c3b5",
200+
strip_prefix = "Arcade-Learning-Environment-0.8.1",
200201
urls = [
201-
"https://github.com/mgbellemare/Arcade-Learning-Environment/archive/refs/tags/v0.8.0.tar.gz",
202-
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/mgbellemare/Arcade-Learning-Environment/v0.8.0.tar.gz",
202+
"https://github.com/mgbellemare/Arcade-Learning-Environment/archive/refs/tags/v0.8.1.tar.gz",
203+
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/mgbellemare/Arcade-Learning-Environment/v0.8.1.tar.gz",
203204
],
204205
build_file = "//third_party/ale:ale.BUILD",
205206
)
@@ -243,36 +244,36 @@ def workspace():
243244
maybe(
244245
http_archive,
245246
name = "sdl2",
246-
sha256 = "02537cc7ebd74071631038b237ec4bfbb3f4830ba019e569434da33f42373e04",
247-
strip_prefix = "SDL2-2.26.1",
247+
sha256 = "888b8c39f36ae2035d023d1b14ab0191eb1d26403c3cf4d4d5ede30e66a4942c",
248+
strip_prefix = "SDL2-2.28.4",
248249
urls = [
249-
"https://www.libsdl.org/release/SDL2-2.26.1.tar.gz",
250-
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/libsdl/SDL2-2.26.1.tar.gz",
250+
"https://www.libsdl.org/release/SDL2-2.28.4.tar.gz",
251+
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/libsdl/SDL2-2.28.4.tar.gz",
251252
],
252253
build_file = "//third_party/sdl2:sdl2.BUILD",
253254
)
254255

255256
maybe(
256257
http_archive,
257258
name = "com_github_nelhage_rules_boost",
258-
sha256 = "6ded3e8c064054c92b79aeadde2d78821c889598e634c595133da0ea8f0f0b85",
259-
strip_prefix = "rules_boost-f1065639e6f33741abe2a6a78fa79dd1a07bbf5d",
259+
# sha256 = "2215e6910eb763a971b1f63f53c45c0f2b7607df38c96287666d94d954da8cdc",
260+
strip_prefix = "rules_boost-e60cf50996da9fe769b6e7a31b88c54966ecb191",
260261
urls = [
261-
"https://github.com/nelhage/rules_boost/archive/f1065639e6f33741abe2a6a78fa79dd1a07bbf5d.tar.gz",
262-
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/nelhage/rules_boost/f1065639e6f33741abe2a6a78fa79dd1a07bbf5d.tar.gz",
262+
"https://github.com/nelhage/rules_boost/archive/e60cf50996da9fe769b6e7a31b88c54966ecb191.tar.gz",
263+
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/nelhage/rules_boost/e60cf50996da9fe769b6e7a31b88c54966ecb191.tar.gz",
263264
],
264265
)
265266

266267
maybe(
267268
http_archive,
268269
name = "boost",
269-
build_file = "@com_github_nelhage_rules_boost//:BUILD.boost",
270+
build_file = "@com_github_nelhage_rules_boost//:boost.BUILD",
270271
patch_cmds = ["rm -f doc/pdf/BUILD"],
271-
sha256 = "71feeed900fbccca04a3b4f2f84a7c217186f28a940ed8b7ed4725986baf99fa",
272-
strip_prefix = "boost_1_81_0",
272+
sha256 = "6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e",
273+
strip_prefix = "boost_1_83_0",
273274
urls = [
274-
"https://boostorg.jfrog.io/artifactory/main/release/1.81.0/source/boost_1_81_0.tar.bz2",
275-
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/boost/boost_1_81_0.tar.bz2",
275+
"https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.bz2",
276+
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/boost/boost_1_83_0.tar.bz2",
276277
],
277278
)
278279

@@ -294,8 +295,8 @@ def workspace():
294295
sha256 = "e379a242ada7e1028b7a635da672b0936d99da3702781b76a4400b83602d78c4",
295296
strip_prefix = "ViZDoom-1.1.13/src/vizdoom/",
296297
urls = [
297-
"https://github.com/mwydmuch/ViZDoom/archive/refs/tags/1.1.13.tar.gz",
298-
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/mwydmuch/ViZDoom/1.1.13.tar.gz",
298+
"https://github.com/Farama-Foundation/ViZDoom/archive/refs/tags/1.1.13.tar.gz",
299+
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/Farama-Foundation/ViZDoom/1.1.13.tar.gz",
299300
],
300301
build_file = "//third_party/vizdoom:vizdoom.BUILD",
301302
patches = [
@@ -309,8 +310,8 @@ def workspace():
309310
sha256 = "e379a242ada7e1028b7a635da672b0936d99da3702781b76a4400b83602d78c4",
310311
strip_prefix = "ViZDoom-1.1.13/",
311312
urls = [
312-
"https://github.com/mwydmuch/ViZDoom/archive/refs/tags/1.1.13.tar.gz",
313-
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/mwydmuch/ViZDoom/1.1.13.tar.gz",
313+
"https://github.com/Farama-Foundation/ViZDoom/archive/refs/tags/1.1.13.tar.gz",
314+
"https://ml.cs.tsinghua.edu.cn/~jiayi/envpool/Farama-Foundation/ViZDoom/1.1.13.tar.gz",
314315
],
315316
build_file = "//third_party/vizdoom_lib:vizdoom_lib.BUILD",
316317
)
@@ -428,4 +429,4 @@ def workspace():
428429
name = "cuda",
429430
)
430431

431-
workspace0 = workspace
432+
workspace0 = workspace

third_party/pip_requirements/requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ packaging
1111
tqdm
1212
protobuf<=4.20.0
1313
torch!=2.0.0,!=2.0.1
14-
tianshou>=0.4.10
14+
tianshou>=0.4.10,<1.0.0
1515
opencv-python-headless
1616
box2d-py
1717
dm-control>=1.0.5

0 commit comments

Comments
 (0)