Skip to content

Kokkos N-dim view with ADIOS2 #3864

Answered by anagainaru
hr87 asked this question in Q&A
Oct 20, 2023 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

Sorry for the delay. You can use multi-dimensional views and pass them directly. I tested using something like this, but I think you can play with the adios dimensions as long as it can store the total amount of data you have.

Kokkos::View<float ***, MemSpace> gpuSimData("simBuffer", N1, N2, N3);

 const adios2::Dims shape{N1, N2, N3};
 const adios2::Dims start{0, 0, 0};
 const adios2::Dims count{N1, N2, N3};

This would also work:

    const adios2::Dims shape{N1 * N2 * N3};
    const adios2::Dims start{0};
    const adios2::Dims count{N1 * N2 * N3};

Internally we copy the data from your View to our internal buffers (but we use the default layout) so we expect the same layout for the readi…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@anagainaru
Comment options

Comment options

You must be logged in to vote
3 replies
@anagainaru
Comment options

@hr87
Comment options

@anagainaru
Comment options

Answer selected by anagainaru
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants