Skip to content

Commit

Permalink
Make cuda_dnn use StreamExecutor::DeviceMemoryUsage rather than GpuDr…
Browse files Browse the repository at this point in the history
…iver API to get the same thing.

PiperOrigin-RevId: 684603618
  • Loading branch information
klucke authored and Google-ML-Automation committed Oct 10, 2024
1 parent 1ffcdaa commit 704b1d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xla/stream_executor/cuda/cuda_dnn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ absl::Status CudnnSupport::Init() {
LOG(ERROR) << "Could not create cudnn handle: "
<< CudnnStatusToString(status);
int64_t free, total;
GpuDriver::GetDeviceMemoryInfo(parent_->gpu_context(), &free, &total);
parent_->DeviceMemoryUsage(&free, &total);
LOG(ERROR) << "Memory usage: " << free << " bytes free, " << total
<< " bytes total.";

Expand Down

0 comments on commit 704b1d7

Please sign in to comment.