Skip to content

Commit 07cab8c

Browse files
Fix @local_xla//xla/stream_executor/rocm:rocm_timer_test_gpu_amd_any
1 parent 2a92909 commit 07cab8c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

third_party/xla/xla/stream_executor/rocm/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,6 @@ xla_test(
10921092
"//xla/stream_executor:platform_manager",
10931093
"//xla/stream_executor:stream",
10941094
"//xla/stream_executor:typed_kernel_factory",
1095-
"//xla/stream_executor/gpu:gpu_stream",
10961095
"//xla/stream_executor/gpu:gpu_test_kernels_rocm",
10971096
"@com_google_absl//absl/status",
10981097
"@com_google_absl//absl/time",

third_party/xla/xla/stream_executor/rocm/rocm_timer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ RocmTimer::RocmTimer(Context* context, RocmEvent start_event,
6161

6262
absl::StatusOr<absl::Duration> RocmTimer::GetElapsedDuration() {
6363
if (is_stopped_) {
64-
return absl::InternalError("Measuring inactive timer");
64+
return absl::FailedPreconditionError("Measuring inactive timer");
6565
}
6666
TF_RETURN_IF_ERROR(stream_->RecordEvent(&stop_event_));
6767
TF_ASSIGN_OR_RETURN(float elapsed_milliseconds,

0 commit comments

Comments
 (0)