Improve CUDNN error messages

PiperOrigin-RevId: 826124080
This commit is contained in:
William S. Moses 2025-10-30 11:46:23 -07:00 committed by TensorFlower Gardener
parent 9eeebc9be5
commit a94890b1f9

View File

@ -5421,6 +5421,11 @@ absl::Status CreateOpRunners(
.setEngineConfig(filtered_configs[i], op_graph->getTag())
.build();
if (plan.get_status() != CUDNN_STATUS_SUCCESS) {
std::string message(65535, '\0');
cudnnGetLastErrorString(message.data(), message.size());
VLOG(4) << "Failed building ExecutionPlan: found error: "
<< cudnnGetErrorString(plan.get_status())
<< " with message: " << message;
continue;
}