-
Notifications
You must be signed in to change notification settings - Fork 407
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
Add view label to View bounds error
message for CUDA backend
#870
Comments
Hmmm... one problem would be that |
Well, trying to find out which view is out of bounds without any hints from Kokkos is also non-trivial :) |
yep, yep. I'll try to figure it out, its not impossible yet. |
This would be a non-issue if |
Using |
The view label is stored as a |
It is actually already in device memory, for some views. Much of what I've been doing for the past day is looking for the cases of views that don't have a label, this includes Although Getting to that So yes I've been thinking about this, yes I think it can be done safely in 90% of the cases, but no it really isn't trivial, in part because there is a whole zoo of different species of |
I'm totally fine if this isn't 100% general and gives the old behavior (no label) for difficult edge cases. |
yea, it has to do that (some views just don't have a label), but that still requires correctly detecting such edge cases. I basically can't let the behavior get worse for any of the special cases. |
okay, I think I have a decent implementation as #882 |
It would be really helpful for debugging if the the view label was added to a
View bounds error
on the device with the CUDA backend. Right now, all I get is:The text was updated successfully, but these errors were encountered: