Skip to content

Commit

Permalink
rollback due to data race
Browse files Browse the repository at this point in the history
Reverts a52bead

PiperOrigin-RevId: 693191298
  • Loading branch information
tensorflower-gardener committed Nov 5, 2024
1 parent a9f1fb9 commit 9b0c336
Showing 12 changed files with 4 additions and 526 deletions.
40 changes: 0 additions & 40 deletions third_party/xla/xla/python/BUILD
Original file line number Diff line number Diff line change
@@ -707,7 +707,6 @@ cc_library(
features = ["-use_header_modules"],
visibility = ["//visibility:private"],
deps = [
":config",
":guard_lib",
":jax_jit",
":nb_class_ptr",
@@ -758,7 +757,6 @@ cc_library(
features = ["-use_header_modules"],
visibility = ["//visibility:private"],
deps = [
":config",
":jax_jit",
":nb_class_ptr",
":nb_helpers",
@@ -844,43 +842,6 @@ cc_library(
],
)

cc_library(
name = "config",
srcs = ["config.cc"],
hdrs = ["config.h"],
compatible_with = [],
copts = [
"-fexceptions",
"-fno-strict-aliasing",
],
features = ["-use_header_modules"],
visibility = ["//visibility:private"],
deps = [
":python_ref_manager",
# placeholder for index annotation deps
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/types:span",
"@nanobind",
"@local_config_python//:python_headers", # buildcleaner: keep
"@local_tsl//tsl/platform:logging",
],
)

py_strict_test(
name = "config_test",
srcs = ["config_test.py"],
python_version = "PY3",
srcs_version = "PY3",
tags = ["no_oss"], # TODO(phawkins): This test passes, but requires --config=monolithic.
deps = [
":xla_client",
":xla_extension",
"@absl_py//absl/flags",
"@absl_py//absl/logging",
"@absl_py//absl/testing:absltest",
] + xla_py_test_deps(),
)

cc_library(
name = "mlir",
srcs = ["mlir.cc"],
@@ -1240,7 +1201,6 @@ tsl_pybind_extension(
pytype_srcs = glob(["xla_extension/*.pyi"]),
visibility = ["//visibility:public"],
deps = [
":config",
":custom_call_sharding",
":dlpack",
":guard_lib",
328 changes: 0 additions & 328 deletions third_party/xla/xla/python/config.cc

This file was deleted.

Loading

0 comments on commit 9b0c336

Please sign in to comment.