Skip to content

Commit 60780e5

Browse files
authored
Repo sync (#610)
# Pull Request ## What problem does this PR solve? Issue Number: Fixed #599 ## Possible side effects? - Performance: - Backward compatibility:
1 parent b18b172 commit 60780e5

10 files changed

+1411
-1474
lines changed

bazel/curve25519-donna.BUILD

-21
This file was deleted.

bazel/microsoft_gsl.BUILD

-34
This file was deleted.

bazel/microsoft_kuku.BUILD

-36
This file was deleted.

bazel/patches/grpc.patch

-32
This file was deleted.

bazel/repositories.bzl

+2-27
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ def spu_deps():
2121
_bazel_platform()
2222
_com_github_xtensor_xtensor()
2323
_com_github_xtensor_xtl()
24-
_com_github_grpc_grpc()
2524
_com_github_openxla_xla()
2625
_com_github_pybind11_bazel()
2726
_com_github_pybind11()
@@ -98,21 +97,6 @@ def _com_github_facebook_zstd():
9897
],
9998
)
10099

101-
def _com_github_grpc_grpc():
102-
maybe(
103-
http_archive,
104-
name = "com_github_grpc_grpc",
105-
sha256 = "7f42363711eb483a0501239fd5522467b31d8fe98d70d7867c6ca7b52440d828",
106-
strip_prefix = "grpc-1.51.0",
107-
type = "tar.gz",
108-
patch_args = ["-p1"],
109-
# Set grpc to use local go toolchain
110-
patches = ["@spulib//bazel:patches/grpc.patch"],
111-
urls = [
112-
"https://github.com/grpc/grpc/archive/refs/tags/v1.51.0.tar.gz",
113-
],
114-
)
115-
116100
def _com_github_xtensor_xtensor():
117101
maybe(
118102
http_archive,
@@ -140,17 +124,8 @@ def _com_github_xtensor_xtl():
140124
)
141125

142126
def _com_github_openxla_xla():
143-
OPENXLA_COMMIT = "495516d2d0b4453d5831905e152594614c8b4797"
144-
OPENXLA_SHA256 = "13f6490065db594c6a7f9914e59213b6785ceb81af1f2cb28d5409f3f18aac8e"
145-
146-
maybe(
147-
http_archive,
148-
name = "bazel_skylib",
149-
sha256 = "cd55a062e763b9349921f0f5db8c3933288dc8ba4f76dd9416aac68acee3cb94",
150-
urls = [
151-
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz",
152-
],
153-
)
127+
OPENXLA_COMMIT = "72831acf1eab39d20e9de1fd5bbc6ad90d6171f6"
128+
OPENXLA_SHA256 = "c6ce6b90e6803c9d8481c4e0bc5a72292e9fcb3245114f1dea1bbdc4ef1a238a"
154129

155130
# We need openxla to handle xla/mhlo/stablehlo
156131
maybe(

renovate.json

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"ignoreDeps": [
1010
"bazel",
1111
"protobuf",
12-
"com_github_grpc_grpc"
1312
],
1413
"reviewers": [
1514
"team:spu-dev"

spu/tests/distributed_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def test_dump_pphlo(self):
219219
self.assertIn('pphlo.add', text)
220220

221221
def test_basic_spu_tf(self):
222-
ppd._FRAMEWORK = ppd.Framework.EXP_TF
222+
ppd.set_framework(ppd.Framework.EXP_TF)
223223
a = ppd.device("SPU")(no_in_one_out)()
224224
self.assertTrue(isinstance(a, ppd.SPU.Object))
225225
self.assertEqual(a.vtype, spu_pb2.VIS_PUBLIC)

spu/utils/BUILD.bazel

+13-3
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,29 @@ python_grpc_compile(
4040
)
4141

4242
py_library(
43-
name = "distributed",
43+
name = "distributed_impl",
4444
srcs = [
45-
"distributed.py",
45+
"distributed_impl.py",
4646
":distributed_py_proto_grpc",
4747
"//libspu:spu_py_proto",
4848
],
4949
deps = [
5050
":frontend",
51-
":polyfill",
5251
"//spu:api",
5352
],
5453
)
5554

55+
py_library(
56+
name = "distributed",
57+
srcs = [
58+
"distributed.py",
59+
],
60+
deps = [
61+
":distributed_impl",
62+
":polyfill",
63+
],
64+
)
65+
5666
py_library(
5767
name = "frontend",
5868
srcs = ["frontend.py"],

0 commit comments

Comments
 (0)