Skip to content

Commit

Permalink
Move tsl/concurrency to xla/tsl/concurrency and update users
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 625096733
  • Loading branch information
ddunl authored and copybara-github committed Apr 15, 2024
1 parent 02562bf commit f14af49
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ tfrt_cc_library(
visibility = ["//visibility:public"],
deps = [
":support",
"@local_tsl//tsl/concurrency:async_value",
"//third_party/tensorflow/compiler/xla/tsl/concurrency:async_value",
],
)

Expand All @@ -221,15 +221,15 @@ tfrt_cc_library(
hdrs = ["include/tfrt/concurrency/concurrent_vector.h"],
# copybara:uncomment compatible_with = ["//buildenv/target:non_prod"],
visibility = ["//visibility:public"],
deps = ["@local_tsl//tsl/concurrency:concurrent_vector"],
deps = ["//third_party/tensorflow/compiler/xla/tsl/concurrency:concurrent_vector"],
)

tfrt_cc_library(
name = "ref_count",
hdrs = ["include/tfrt/concurrency/ref_count.h"],
# copybara:uncomment compatible_with = ["//buildenv/target:non_prod"],
visibility = ["//visibility:public"],
deps = ["@local_tsl//tsl/concurrency:ref_count"],
deps = ["//third_party/tensorflow/compiler/xla/tsl/concurrency:ref_count"],
)

tfrt_cc_library(
Expand Down
2 changes: 1 addition & 1 deletion include/tfrt/concurrency/async_value.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.
#ifndef TFRT_CONCURRENCY_ASYNC_VALUE_H_
#define TFRT_CONCURRENCY_ASYNC_VALUE_H_

#include "tsl/concurrency/async_value.h" // from @local_tsl // IWYU pragma: export
#include "compiler/xla/tsl/concurrency/async_value.h" // from @local_tsl // IWYU pragma: export

// TODO(ezhulenev): We have targets that depend on transitive includes. This
// should be removed once we finally move to TSL concurrency package.
Expand Down
2 changes: 1 addition & 1 deletion include/tfrt/concurrency/async_value_ref.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ limitations under the License.
#ifndef TFRT_CONCURRENCY_ASYNC_VALUE_REF_H_
#define TFRT_CONCURRENCY_ASYNC_VALUE_REF_H_

#include "tsl/concurrency/async_value_ref.h" // from @local_tsl // IWYU pragma: export
#include "compiler/xla/tsl/concurrency/async_value_ref.h" // from @local_tsl // IWYU pragma: export

#endif // TFRT_CONCURRENCY_ASYNC_VALUE_REF_H_
2 changes: 1 addition & 1 deletion include/tfrt/concurrency/chain.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ limitations under the License.
#ifndef TFRT_CONCURRENCY_CHAIN_H_
#define TFRT_CONCURRENCY_CHAIN_H_

#include "tsl/concurrency/chain.h" // from @local_tsl // IWYU pragma: export
#include "compiler/xla/tsl/concurrency/chain.h" // from @local_tsl // IWYU pragma: export

#endif // TFRT_CONCURRENCY_CHAIN_H_
2 changes: 1 addition & 1 deletion include/tfrt/concurrency/concurrent_vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ limitations under the License.
#ifndef TFRT_CONCURRENCY_CONCURRENT_VECTOR_H_
#define TFRT_CONCURRENCY_CONCURRENT_VECTOR_H_

#include "tsl/concurrency/concurrent_vector.h" // from @local_tsl // IWYU pragma: export
#include "compiler/xla/tsl/concurrency/concurrent_vector.h" // from @local_tsl // IWYU pragma: export

#endif // TFRT_CONCURRENCY_CONCURRENT_VECTOR_H_
2 changes: 1 addition & 1 deletion include/tfrt/concurrency/ref_count.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ limitations under the License.
#ifndef TFRT_CONCURRENCY_REF_COUNT_H_
#define TFRT_CONCURRENCY_REF_COUNT_H_

#include "tsl/concurrency/ref_count.h" // from @local_tsl // IWYU pragma: export
#include "compiler/xla/tsl/concurrency/ref_count.h" // from @local_tsl // IWYU pragma: export

#endif // TFRT_CONCURRENCY_REF_COUNT_H_

0 comments on commit f14af49

Please sign in to comment.