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

Add more static assertions #26

Merged
merged 7 commits into from
Jan 23, 2024
Merged

Add more static assertions #26

merged 7 commits into from
Jan 23, 2024

Conversation

yasahi-hpc
Copy link
Collaborator

In this PR, I have added more static assertions for APIs.
It includes the consistency between execution space and Views, consistency between Input and Output View metadata. For example, a check for memory and exec space consistency is made by

static_assert(
  Kokkos::SpaceAccessibility<ExecSpace, MemorySpace>::accessible,
  "MemorySpace has to be accessible for ExecutionSpace."
);

@yasahi-hpc yasahi-hpc merged commit 15e4bad into main Jan 23, 2024
5 checks passed
@yasahi-hpc yasahi-hpc deleted the add-more-static-assertions branch January 23, 2024 13:51
@yasahi-hpc yasahi-hpc mentioned this pull request Jan 23, 2024
31 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant