Skip to content

Commit

Permalink
repo-sync-2024-03-15T14:45:38+0800
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinxc committed Mar 15, 2024
1 parent b18b172 commit f3130b5
Show file tree
Hide file tree
Showing 10 changed files with 1,411 additions and 1,474 deletions.
21 changes: 0 additions & 21 deletions bazel/curve25519-donna.BUILD

This file was deleted.

34 changes: 0 additions & 34 deletions bazel/microsoft_gsl.BUILD

This file was deleted.

36 changes: 0 additions & 36 deletions bazel/microsoft_kuku.BUILD

This file was deleted.

32 changes: 0 additions & 32 deletions bazel/patches/grpc.patch

This file was deleted.

29 changes: 2 additions & 27 deletions bazel/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def spu_deps():
_bazel_platform()
_com_github_xtensor_xtensor()
_com_github_xtensor_xtl()
_com_github_grpc_grpc()
_com_github_openxla_xla()
_com_github_pybind11_bazel()
_com_github_pybind11()
Expand Down Expand Up @@ -98,21 +97,6 @@ def _com_github_facebook_zstd():
],
)

def _com_github_grpc_grpc():
maybe(
http_archive,
name = "com_github_grpc_grpc",
sha256 = "7f42363711eb483a0501239fd5522467b31d8fe98d70d7867c6ca7b52440d828",
strip_prefix = "grpc-1.51.0",
type = "tar.gz",
patch_args = ["-p1"],
# Set grpc to use local go toolchain
patches = ["@spulib//bazel:patches/grpc.patch"],
urls = [
"https://github.com/grpc/grpc/archive/refs/tags/v1.51.0.tar.gz",
],
)

def _com_github_xtensor_xtensor():
maybe(
http_archive,
Expand Down Expand Up @@ -140,17 +124,8 @@ def _com_github_xtensor_xtl():
)

def _com_github_openxla_xla():
OPENXLA_COMMIT = "495516d2d0b4453d5831905e152594614c8b4797"
OPENXLA_SHA256 = "13f6490065db594c6a7f9914e59213b6785ceb81af1f2cb28d5409f3f18aac8e"

maybe(
http_archive,
name = "bazel_skylib",
sha256 = "cd55a062e763b9349921f0f5db8c3933288dc8ba4f76dd9416aac68acee3cb94",
urls = [
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz",
],
)
OPENXLA_COMMIT = "72831acf1eab39d20e9de1fd5bbc6ad90d6171f6"
OPENXLA_SHA256 = "c6ce6b90e6803c9d8481c4e0bc5a72292e9fcb3245114f1dea1bbdc4ef1a238a"

# We need openxla to handle xla/mhlo/stablehlo
maybe(
Expand Down
1 change: 0 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"ignoreDeps": [
"bazel",
"protobuf",
"com_github_grpc_grpc"
],
"reviewers": [
"team:spu-dev"
Expand Down
2 changes: 1 addition & 1 deletion spu/tests/distributed_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def test_dump_pphlo(self):
self.assertIn('pphlo.add', text)

def test_basic_spu_tf(self):
ppd._FRAMEWORK = ppd.Framework.EXP_TF
ppd.set_framework(ppd.Framework.EXP_TF)
a = ppd.device("SPU")(no_in_one_out)()
self.assertTrue(isinstance(a, ppd.SPU.Object))
self.assertEqual(a.vtype, spu_pb2.VIS_PUBLIC)
Expand Down
16 changes: 13 additions & 3 deletions spu/utils/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,29 @@ python_grpc_compile(
)

py_library(
name = "distributed",
name = "distributed_impl",
srcs = [
"distributed.py",
"distributed_impl.py",
":distributed_py_proto_grpc",
"//libspu:spu_py_proto",
],
deps = [
":frontend",
":polyfill",
"//spu:api",
],
)

py_library(
name = "distributed",
srcs = [
"distributed.py",
],
deps = [
":distributed_impl",
":polyfill",
],
)

py_library(
name = "frontend",
srcs = ["frontend.py"],
Expand Down
Loading

0 comments on commit f3130b5

Please sign in to comment.