8000 View Customization: Enable extra integer argument in view constructors etc. by crtrott · Pull Request #8202 · kokkos/kokkos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

View Customization: Enable extra integer argument in view constructors etc. #8202

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

crtrott
Copy link
Member
@crtrott crtrott commented Jun 23, 2025

This enables passing extra integer arguments to the respective places in Kokkos View as the current Sacado partial specialization allows. We likely want to deprecate these code paths in a subsequent PR. For shmem_size and required_allocation_size we need to invent new interfaces however to do that (hence subsequent PR)

Specifically for construction for Sacado the following is equivalent now:

fad_view_t a("A", N, M, fad_size);
fad_view_t a(view_alloc("A", Impl::AccessorArg_t{fad_size}), N, M);

crtrott added 2 commits June 23, 2025 17:14
Signed-off-by: Christian Trott <crtrott@sandia.gov>
This tests both constructor and shmem_size function.

Signed-off-by: Christian Trott <crtrott@sandia.gov>
@crtrott crtrott force-pushed the view-customization-view-extra-int branch from 626c322 to 142fbe1 Compare June 23, 2025 23:23
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
0