Skip to content

Pr from fork/680#681

Merged
MrBurmark merged 6 commits into
developfrom
pr-from-fork/680
Apr 20, 2026
Merged

Pr from fork/680#681
MrBurmark merged 6 commits into
developfrom
pr-from-fork/680

Conversation

@MrBurmark
Copy link
Copy Markdown
Member

Summary

Signed-off-by: Adrien Taberner <adrien.taberner@cea.fr>
Signed-off-by: Adrien Taberner <adrien.taberner@cea.fr>
Signed-off-by: Adrien Taberner <adrien.taberner@cea.fr>
Signed-off-by: Adrien Taberner <adrien.taberner@cea.fr>
@MrBurmark MrBurmark requested review from a team and rhornung67 April 16, 2026 16:12

POLYBENCH_HEAT_3D_DATA_SETUP;

// Views 3D : dimension order (i, j, k), i.e. (N, N, N)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does Kokkos follow the C-style index ordering? Fastest stride is the right most index?
Wondering if its worth noting?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it depends on the configured backend. I think this comment can be removed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Adrien-Tab can you add a comment specifying which ordering is in effect?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other thought I had was if kokkos had a backend dependent ordering stride is that worth also having with the native and RAJA variants? This would promote consistency if it is the case. Or have Kokkos use the same striding order used by native and RAJA again for consistency regardless of backend.

Copy link
Copy Markdown
Member Author

@MrBurmark MrBurmark Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kokkos should use the same data layout as the other variants of the kernel so the results are as comparable across variants. There are multi dimensional views in multiple files, let's not worry about documenting or fixing that in this PR if it needs to be fixed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, please capture in an issue if there is an inconsistency.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Adrien-Tab are there any cases where kokkos is reordering the data?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about the reordering question. The default layout shouldn't be an issue since the View default layout and the parallel pattern default iteration order are matched per backend. For GPU backends this means LayoutLeft (Fortran-style indexing).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah interesting, RAJA's default layout is LayoutRight C-style indexing.

Comment thread src/polybench-kokkos/POLYBENCH_HEAT_3D-Kokkos.cpp Outdated
@MrBurmark MrBurmark requested a review from artv3 April 17, 2026 15:44
@MrBurmark MrBurmark merged commit 9bc6791 into develop Apr 20, 2026
23 checks passed
@MrBurmark MrBurmark deleted the pr-from-fork/680 branch April 20, 2026 16:10
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.

4 participants