Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetElasedTimeUs -> GetElapsedTimeUs #28320

Merged
merged 1 commit into from
May 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions tensorflow/core/platform/default/device_tracer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ class CudaEventCollector {
}

// Returns time in microseconds between events recorded on the GPU.
static uint64_t GetElasedTimeUs(CUevent start, CUevent stop) {
static uint64_t GetElapsedTimeUs(CUevent start, CUevent stop) {
float elapsed_ms = 0.0f;
LogIfError(ToStatus(cuEventElapsedTime(&elapsed_ms, start, stop)));
return static_cast<uint64>(
Expand Down Expand Up @@ -582,8 +582,8 @@ class CudaEventCollector {
const auto& stream_info =
stream_infos_.at(StreamKey(record.context, record.stream));
auto start_us =
GetElasedTimeUs(record.start_event, stream_info.ctx_info->end_event);
auto elapsed_us = GetElasedTimeUs(record.start_event, record.stop_event);
GetElapsedTimeUs(record.start_event, stream_info.ctx_info->end_event);
auto elapsed_us = GetElapsedTimeUs(record.start_event, record.stop_event);

auto stats = absl::make_unique<NodeExecStats>();
std::string node_name = record.kernel_name;
Expand Down Expand Up @@ -611,8 +611,8 @@ class CudaEventCollector {
const auto& stream_info =
stream_infos_.at(StreamKey(record.context, record.stream));
auto start_us =
GetElasedTimeUs(record.start_event, stream_info.ctx_info->end_event);
auto elapsed_us = GetElasedTimeUs(record.start_event, record.stop_event);
GetElapsedTimeUs(record.start_event, stream_info.ctx_info->end_event);
auto elapsed_us = GetElapsedTimeUs(record.start_event, record.stop_event);

auto stats = absl::make_unique<NodeExecStats>();
std::string node_name = GetMemcpyName(record);
Expand Down