-
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
View constructor should check arguments #1286
Comments
Yeah, I got bit by this before when I forgot a |
Remaining piece: constructor should check argument count |
Just one more data point: I switched some one-dimensional views to two dimensions, but forgot to add an additional argument to constructor. The code compiled without errors and I had to debug at runtime--not a good user experience. |
@stanmoore1 this will definitely be fixed in the February Kokkos release. |
@ibaned awesome, thanks! |
The following code compiles and runs with no errors or warnings at all.
Our constructors should check for extra arguments that go beyond the rank of the view.
@csiefer2
The text was updated successfully, but these errors were encountered: