This is an archive of the discontinued LLVM Phabricator instance.

[mlir][gpu] Fix error message on unknown CUDA error code.
ClosedPublic

Authored by ingomueller-net on Aug 1 2023, 6:32 AM.

Details

Summary

This patch fixes the output of the error message that is printed when
the CUDA library cannot identity the error code. In that case, no error
message is provided by the library, and the previous implementation just
printed the content of a randomly initialized pointer. This patch
initializes the pointer to nullptr and only prints the content if that
has changed.

Diff Detail

Event Timeline

ingomueller-net created this revision.Aug 1 2023, 6:32 AM
Herald added a project: Restricted Project. · View Herald Transcript
ingomueller-net requested review of this revision.Aug 1 2023, 6:32 AM
Mogball accepted this revision.Aug 9 2023, 4:18 PM
This revision is now accepted and ready to land.Aug 9 2023, 4:18 PM
  • Rebasing onto current main.