Skip to content

Commit

Permalink
Update users of TSL headers and targets to new location in XLA
Browse files Browse the repository at this point in the history
Updating:
 - `env.h`
 - `env_time.h`
 - `errors.h`
 - `file_statistics.h`
 - `file_system.h`
 - `file_system_helper.h`
 - `logging.h`
 - `macros.h`
 - `status.h`
 - `status_matchers.h`
 - `status_to_from_proto.h`
 - `statusor.h`
 - `test.h`
 - `test_benchmark.h`
 - `threadpool.h`
 - `threadpool_async_executor.h`
 - `threadpool_interface.h`
 - `threadpool_options.h`
 - `types.h`

and associated targets.

PiperOrigin-RevId: 716381853
  • Loading branch information
ddunl authored and Google-ML-Automation committed Jan 23, 2025
1 parent e9a1a97 commit 1c512d9
Show file tree
Hide file tree
Showing 29 changed files with 114 additions and 112 deletions.
117 changes: 59 additions & 58 deletions xla/stream_executor/rocm/BUILD

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions xla/stream_executor/rocm/hip_blas_lt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ limitations under the License.
#include "xla/stream_executor/rocm/rocm_blas.h"
#include "xla/stream_executor/scratch_allocator.h"
#include "xla/stream_executor/stream.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/types.h"
#include "xla/util.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/ml_dtypes.h"
#include "tsl/platform/statusor.h"

#define SET_ATTR(setter, handle, attr, value) \
ToStatus(setter(handle, attr, &value, sizeof(decltype(value))), #setter)
Expand Down
2 changes: 1 addition & 1 deletion xla/stream_executor/rocm/hip_blas_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ limitations under the License.
#include "absl/status/status.h"
#include "xla/stream_executor/blas.h"
#include "xla/stream_executor/rocm/hipblaslt_wrapper.h"
#include "tsl/platform/errors.h"
#include "xla/tsl/platform/errors.h"

#if TF_HIPBLASLT

Expand Down
2 changes: 1 addition & 1 deletion xla/stream_executor/rocm/hipblaslt_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ limitations under the License.
#else
#include "rocm/include/hipblaslt.h"
#endif
#include "xla/tsl/platform/env.h"
#include "tsl/platform/dso_loader.h"
#include "tsl/platform/env.h"

namespace stream_executor {
namespace wrap {
Expand Down
2 changes: 1 addition & 1 deletion xla/stream_executor/rocm/hipsolver_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ limitations under the License.

#include "rocm/include/hipsolver.h"
#endif
#include "xla/tsl/platform/env.h"
#include "tsl/platform/dso_loader.h"
#include "tsl/platform/env.h"

namespace stream_executor {
namespace wrap {
Expand Down
2 changes: 1 addition & 1 deletion xla/stream_executor/rocm/hipsparse_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ limitations under the License.
#else
#include "rocm/include/hipsparse.h"
#endif
#include "xla/tsl/platform/env.h"
#include "tsl/platform/dso_loader.h"
#include "tsl/platform/env.h"
#include "tsl/platform/platform.h"

namespace stream_executor {
Expand Down
2 changes: 1 addition & 1 deletion xla/stream_executor/rocm/rocblas_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ limitations under the License.

#include "rocm/include/rocblas/rocblas.h"
#include "rocm/rocm_config.h"
#include "xla/tsl/platform/env.h"
#include "tsl/platform/dso_loader.h"
#include "tsl/platform/env.h"
#include "tsl/platform/platform.h"

namespace stream_executor {
Expand Down
8 changes: 4 additions & 4 deletions xla/stream_executor/rocm/rocm_blas.cc
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ limitations under the License.
#include "xla/stream_executor/rocm/rocm_platform_id.h"
#include "xla/stream_executor/scratch_allocator.h"
#include "xla/stream_executor/stream_executor.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/logging.h"
#include "xla/tsl/platform/macros.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/tsl/util/determinism.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/logging.h"
#include "tsl/platform/macros.h"
#include "tsl/platform/statusor.h"

using tsl::OpDeterminismRequired;

Expand Down
6 changes: 3 additions & 3 deletions xla/stream_executor/rocm/rocm_command_buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ limitations under the License.
#include "xla/stream_executor/rocm/rocm_kernel.h"
#include "xla/stream_executor/rocm/rocm_status.h"
#include "xla/stream_executor/stream_executor.h"
#include "xla/tsl/platform/env.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/statusor.h"
#include "tsl/platform/casts.h"
#include "tsl/platform/env.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/statusor.h"

namespace stream_executor::gpu {
namespace {
Expand Down
4 changes: 2 additions & 2 deletions xla/stream_executor/rocm/rocm_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ limitations under the License.
#include "xla/stream_executor/gpu/scoped_activate_context.h"
#include "xla/stream_executor/rocm/rocm_driver_wrapper.h"
#include "xla/stream_executor/rocm/rocm_status.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/status.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/status.h"

namespace stream_executor::gpu {

Expand Down
2 changes: 1 addition & 1 deletion xla/stream_executor/rocm/rocm_diagnostics.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ limitations under the License.
#include "absl/strings/str_format.h"
#include "absl/strings/str_split.h"
#include "absl/strings/strip.h"
#include "xla/tsl/platform/logging.h"
#include "tsl/platform/host_info.h"
#include "tsl/platform/logging.h"

namespace stream_executor {
namespace rocm {
Expand Down
12 changes: 6 additions & 6 deletions xla/stream_executor/rocm/rocm_dnn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,18 @@ limitations under the License.
#include "xla/stream_executor/scratch_allocator.h"
#include "xla/stream_executor/stream.h"
#include "xla/stream_executor/stream_executor.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/logging.h"
#include "xla/tsl/platform/macros.h"
#include "xla/tsl/platform/status.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/tsl/util/determinism.h"
#include "xla/tsl/util/env_var.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/hash.h"
#include "tsl/platform/logging.h"
#include "tsl/platform/macros.h"
#include "tsl/platform/status.h"
#include "tsl/platform/statusor.h"

#ifndef PLATFORM_GOOGLE
#include "xla/tsl/platform/env.h"
#include "tsl/platform/dso_loader.h"
#include "tsl/platform/env.h"
#endif

namespace {
Expand Down
2 changes: 1 addition & 1 deletion xla/stream_executor/rocm/rocm_driver_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ limitations under the License.

#include "rocm/include/hip/hip_runtime.h"
#include "rocm/rocm_config.h"
#include "xla/tsl/platform/env.h"
#include "tsl/platform/dso_loader.h"
#include "tsl/platform/env.h"

namespace stream_executor {
namespace wrap {
Expand Down
4 changes: 2 additions & 2 deletions xla/stream_executor/rocm/rocm_event.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ limitations under the License.
#include "xla/stream_executor/event.h"
#include "xla/stream_executor/rocm/rocm_driver_wrapper.h"
#include "xla/stream_executor/rocm/rocm_status.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/statusor.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/statusor.h"

namespace stream_executor {
namespace gpu {
Expand Down
4 changes: 2 additions & 2 deletions xla/stream_executor/rocm/rocm_event_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ limitations under the License.
#include "xla/stream_executor/platform.h"
#include "xla/stream_executor/platform_manager.h"
#include "xla/stream_executor/rocm/rocm_platform_id.h"
#include "tsl/platform/statusor.h"
#include "tsl/platform/test.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/tsl/platform/test.h"

namespace stream_executor::gpu {
namespace {
Expand Down
1 change: 1 addition & 0 deletions xla/stream_executor/rocm/rocm_executor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ limitations under the License.
#include "xla/stream_executor/stream_executor.h"
#include "xla/tsl/platform/env.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/logging.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/tsl/platform/threadpool.h"
#include "tsl/platform/casts.h"
Expand Down
4 changes: 2 additions & 2 deletions xla/stream_executor/rocm/rocm_fft.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ limitations under the License.
#include "xla/stream_executor/scratch_allocator.h"
#include "xla/stream_executor/stream.h"
#include "xla/stream_executor/stream_executor.h"
#include "tsl/platform/logging.h"
#include "xla/tsl/platform/logging.h"

#ifndef PLATFORM_GOOGLE
#include "xla/tsl/platform/env.h"
#include "tsl/platform/dso_loader.h"
#include "tsl/platform/env.h"
#endif

namespace stream_executor {
Expand Down
2 changes: 1 addition & 1 deletion xla/stream_executor/rocm/rocm_kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ limitations under the License.
#include "xla/stream_executor/kernel.h"
#include "xla/stream_executor/launch_dim.h"
#include "xla/stream_executor/stream_executor.h"
#include "tsl/platform/logging.h"
#include "xla/tsl/platform/logging.h"

namespace stream_executor::gpu {

Expand Down
6 changes: 3 additions & 3 deletions xla/stream_executor/rocm/rocm_kernel_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ limitations under the License.
#include "xla/stream_executor/platform.h"
#include "xla/stream_executor/platform_manager.h"
#include "xla/stream_executor/stream_executor.h"
#include "tsl/platform/status_matchers.h"
#include "tsl/platform/statusor.h"
#include "tsl/platform/test.h"
#include "xla/tsl/platform/status_matchers.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/tsl/platform/test.h"

namespace stream_executor::gpu {
namespace {
Expand Down
4 changes: 2 additions & 2 deletions xla/stream_executor/rocm/rocm_platform.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ limitations under the License.
#include "xla/stream_executor/rocm/rocm_executor.h"
#include "xla/stream_executor/rocm/rocm_platform_id.h"
#include "xla/stream_executor/rocm/rocm_status.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/status.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/status.h"

namespace stream_executor {
namespace gpu {
Expand Down
4 changes: 2 additions & 2 deletions xla/stream_executor/rocm/rocm_solver_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ limitations under the License.
#include "xla/stream_executor/device_memory.h"
#include "xla/stream_executor/gpu_solver_context.h"
#include "xla/stream_executor/stream.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/logging.h"
#include "xla/util.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/logging.h"

namespace stream_executor {

Expand Down
4 changes: 2 additions & 2 deletions xla/stream_executor/rocm/rocm_status_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ limitations under the License.
#include "absl/status/status.h"
#include "absl/strings/string_view.h"
#include "rocm/include/hip/hip_runtime.h"
#include "tsl/platform/status_matchers.h"
#include "tsl/platform/test.h"
#include "xla/tsl/platform/status_matchers.h"
#include "xla/tsl/platform/test.h"

namespace stream_executor::gpu {
namespace {
Expand Down
4 changes: 2 additions & 2 deletions xla/stream_executor/rocm/rocm_stream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ limitations under the License.
#include "xla/stream_executor/rocm/rocm_kernel.h"
#include "xla/stream_executor/rocm/rocm_status.h"
#include "xla/stream_executor/stream.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/statusor.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/statusor.h"

namespace stream_executor::gpu {
namespace {
Expand Down
6 changes: 3 additions & 3 deletions xla/stream_executor/rocm/rocm_stream_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ limitations under the License.
#include "xla/stream_executor/rocm/rocm_executor.h"
#include "xla/stream_executor/rocm/rocm_platform_id.h"
#include "xla/stream_executor/typed_kernel_factory.h"
#include "tsl/platform/status_matchers.h"
#include "tsl/platform/statusor.h"
#include "tsl/platform/test.h"
#include "xla/tsl/platform/status_matchers.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/tsl/platform/test.h"

namespace stream_executor {
namespace gpu {
Expand Down
4 changes: 2 additions & 2 deletions xla/stream_executor/rocm/rocm_timer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ limitations under the License.
#include "xla/stream_executor/rocm/rocm_status.h"
#include "xla/stream_executor/stream.h"
#include "xla/stream_executor/stream_executor.h"
#include "tsl/platform/errors.h"
#include "tsl/platform/statusor.h"
#include "xla/tsl/platform/errors.h"
#include "xla/tsl/platform/statusor.h"

namespace stream_executor::gpu {
namespace {
Expand Down
6 changes: 3 additions & 3 deletions xla/stream_executor/rocm/rocm_timer_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ limitations under the License.
#include "xla/stream_executor/rocm/rocm_platform_id.h"
#include "xla/stream_executor/stream.h"
#include "xla/stream_executor/typed_kernel_factory.h"
#include "tsl/platform/status_matchers.h"
#include "tsl/platform/statusor.h"
#include "tsl/platform/test.h"
#include "xla/tsl/platform/status_matchers.h"
#include "xla/tsl/platform/statusor.h"
#include "xla/tsl/platform/test.h"

namespace stream_executor::gpu {
namespace {
Expand Down
4 changes: 2 additions & 2 deletions xla/stream_executor/rocm/rocm_version_parser_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ limitations under the License.
#include "absl/status/status.h"
#include "rocm/include/hip/hip_version.h"
#include "xla/stream_executor/semantic_version.h"
#include "tsl/platform/status_matchers.h"
#include "tsl/platform/test.h"
#include "xla/tsl/platform/status_matchers.h"
#include "xla/tsl/platform/test.h"

namespace stream_executor {

Expand Down
2 changes: 1 addition & 1 deletion xla/stream_executor/rocm/rocsolver_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ limitations under the License.
#include "rocm/include/rocsolver.h"
#endif

#include "xla/tsl/platform/env.h"
#include "tsl/platform/dso_loader.h"
#include "tsl/platform/env.h"

namespace stream_executor {
namespace wrap {
Expand Down
2 changes: 1 addition & 1 deletion xla/stream_executor/rocm/roctracer_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ limitations under the License.
#else
#include "rocm/include/roctracer/roctracer_hcc.h"
#endif
#include "xla/tsl/platform/env.h"
#include "tsl/platform/dso_loader.h"
#include "tsl/platform/env.h"
#include "tsl/platform/platform.h"

namespace stream_executor {
Expand Down

0 comments on commit 1c512d9

Please sign in to comment.