Skip to content

Commit f2331a7

Browse files
committed
This PR downgrades harmless duplicate cuDNN, cuBLAS, and cuFFT factory
registration logs from INFO to VLOG(1), fully silencing them during normal usage. Upstream already reduced these from ERROR to INFO, but they still create unnecessary log noise when XLA and GPU backends initialize. Since the duplicate registration is safe and expected this change preserves visibility only for debugging sessions. Co-inspired by ChatGPT during a deep dive into TensorFLow's logging system. Fixes: tensorflow#62075
1 parent 7a12263 commit f2331a7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: third_party/xla/xla/stream_executor/cuda/cuda_blas.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1404,7 +1404,7 @@ void initialize_cublas() {
14041404
});
14051405

14061406
if (!status.ok()) {
1407-
LOG(INFO) << "Unable to register cuBLAS factory: " << status.message();
1407+
VLOG(1) << "Unable to register cuBLAS factory: " << status.message();
14081408
}
14091409
}
14101410

Diff for: third_party/xla/xla/stream_executor/cuda/cuda_dnn.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -8697,7 +8697,7 @@ void initialize_cudnn() {
86978697
});
86988698

86998699
if (!status.ok()) {
8700-
LOG(INFO) << "Unable to register cuDNN factory: " << status.message();
8700+
VLOG(1) << "Unable to register cuDNN factory: " << status.message();
87018701
}
87028702
}
87038703

Diff for: third_party/xla/xla/stream_executor/cuda/cuda_fft.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ void initialize_cufft() {
464464
return new gpu::CUDAFft(parent);
465465
});
466466
if (!status.ok()) {
467-
LOG(INFO) << "Unable to register cuFFT factory: " << status.message();
467+
VLOG(1) << "Unable to register cuFFT factory: " << status.message();
468468
}
469469
}
470470

0 commit comments

Comments
 (0)