-
Notifications
You must be signed in to change notification settings - Fork 74.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove some unnecessary stream_executor/platform dependencies.
FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#17295 from ROCm:ci_rv_clang b0f316408f62052125973cfff6f9371a91e84464 PiperOrigin-RevId: 683241935
- Loading branch information
1 parent
456e264
commit 208b1a1
Showing
25 changed files
with
534 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
load("//tensorflow:tensorflow.bzl", "tf_cc_test") | ||
load("//tensorflow/core/platform:rules_cc.bzl", "cc_library") | ||
|
||
package( | ||
# copybara:uncomment default_applicable_licenses = ["//tensorflow:license"], | ||
default_visibility = ["//visibility:public"], | ||
) | ||
|
||
cc_library( | ||
name = "graph_to_tf_executor_registration", | ||
srcs = [ | ||
"graph_to_tf_executor_registration.cc", | ||
], | ||
deps = [ | ||
"//tensorflow/compiler/mlir/tensorflow", | ||
"//tensorflow/compiler/mlir/tensorflow/translate:mlir_roundtrip_flags", | ||
"//tensorflow/compiler/mlir/tensorflow/translate:translate_cl_options", | ||
"//tensorflow/compiler/mlir/tensorflow/translate:translate_lib", | ||
"//tensorflow/compiler/mlir/tf2xla/api/v2:tf_executor_to_graph", | ||
"//tensorflow/compiler/tf2xla:xla_compiler", | ||
"//tensorflow/compiler/tf2xla/kernels:xla_ops", | ||
"//tensorflow/core:core_cpu_base", | ||
"//tensorflow/core:framework", | ||
"//tensorflow/core:protos_all_cc", | ||
"@com_google_absl//absl/container:flat_hash_set", | ||
"@com_google_absl//absl/log", | ||
"@com_google_absl//absl/status", | ||
"@com_google_absl//absl/strings:string_view", | ||
"@llvm-project//llvm:Support", | ||
"@llvm-project//mlir:IR", | ||
"@llvm-project//mlir:Support", | ||
"@llvm-project//mlir:TranslateLib", | ||
"@local_tsl//tsl/platform:protobuf", | ||
"@local_tsl//tsl/platform:status", | ||
"@local_xla//xla/client:client_library", | ||
"@local_xla//xla/client:compile_only_client", | ||
"@local_xla//xla/service/cpu:cpu_compiler", | ||
"@local_xla//xla/service/cpu:cpu_transfer_manager", | ||
"@local_xla//xla/stream_executor", | ||
"@local_xla//xla/stream_executor/host:host_platform", | ||
"@local_xla//xla/stream_executor/host:host_platform_id", | ||
], | ||
alwayslink = 1, | ||
) | ||
|
||
tf_cc_test( | ||
name = "graph_to_tf_executor_registration_test", | ||
size = "small", | ||
srcs = ["graph_to_tf_executor_registration_test.cc"], | ||
deps = [ | ||
":graph_to_tf_executor_registration", | ||
"//tensorflow/core:test", | ||
"//tensorflow/core:test_main", | ||
"@com_google_absl//absl/strings", | ||
"@llvm-project//llvm:Support", | ||
"@llvm-project//mlir:Support", | ||
"@llvm-project//mlir:TranslateLib", | ||
], | ||
) |
Oops, something went wrong.