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

On CUDA error, print debugging information #1564

Closed
PhilMiller opened this issue Sep 28, 2021 · 1 comment · Fixed by #1567
Closed

On CUDA error, print debugging information #1564

PhilMiller opened this issue Sep 28, 2021 · 1 comment · Fixed by #1567
Assignees

Comments

@PhilMiller
Copy link
Member

What Needs to be Done?

In AsyncOpCUDA, the abort message when an error is detected on a stream is completely uninformative. It should print

  1. The error value and its description
  2. The stream identity
  3. The event identity

To support doing this with low overhead, move from vtAbortIf to testing the condition with if, and constructing an error string and calling vtAbort

@PhilMiller PhilMiller self-assigned this Sep 28, 2021
@PhilMiller
Copy link
Member Author

The stream identity isn't actually saved in the event, so it would add overhead to try to print that. I'll add the event, and if necessary, a debug print could be added to correlate events with streams.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant