Skip to content

[Mirror] [5.1.1] 1 OpenACC: fix parallel_scan chunk boundary race - #7

Open
csiefer2 wants to merge 11 commits into
developfrom
pr-mirror-9113
Open

[Mirror] [5.1.1] 1 OpenACC: fix parallel_scan chunk boundary race#7
csiefer2 wants to merge 11 commits into
developfrom
pr-mirror-9113

Conversation

@csiefer2

Copy link
Copy Markdown
Owner

Automated mirror of upstream PR kokkos#9113 Cherry-pick of kokkos#9078 onto release-candidate-5.1.1.

Original PR: kokkos#9078

dalg24 and others added 11 commits March 4, 2026 18:38
Signed-off-by: Damien L-G <dalg24@gmail.com>
Signed-off-by: Daniel Arndt <arndtd@ornl.gov>
```
/path/to/kokkos/core/src/Kokkos_Macros.hpp:36:6: warning: 'KOKKOS_VERSION' is not defined, evaluates to 0 [-Wundef]
   36 | #if !KOKKOS_VERSION_EQUAL(KOKKOS_VERSION_MAJOR, KOKKOS_VERSION_MINOR, \
      |      ^
/path/to/kokkos/core/src/Kokkos_Macros.hpp:34:4: note: expanded from macro 'KOKKOS_VERSION_EQUAL'
   34 |   (KOKKOS_VERSION == ((MAJOR)*10000 + (MINOR)*100 + (PATCH)))
      |    ^
/path/to/kokkos/core/src/Kokkos_Macros.hpp:36:27: warning: 'KOKKOS_VERSION_MAJOR' is not defined, evaluates to 0 [-Wundef]
   36 | #if !KOKKOS_VERSION_EQUAL(KOKKOS_VERSION_MAJOR, KOKKOS_VERSION_MINOR, \
      |                           ^
/path/to/kokkos/core/src/Kokkos_Macros.hpp:36:49: warning: 'KOKKOS_VERSION_MINOR' is not defined, evaluates to 0 [-Wundef]
   36 | #if !KOKKOS_VERSION_EQUAL(KOKKOS_VERSION_MAJOR, KOKKOS_VERSION_MINOR, \
      |                                                 ^
/path/to/kokkos/core/src/Kokkos_Macros.hpp:37:27: warning: 'KOKKOS_VERSION_PATCH' is not defined, evaluates to 0 [-Wundef]
   37 |                           KOKKOS_VERSION_PATCH)
      |                           ^
```

Co-Authored-By: Daniel Arndt <arndtd@ornl.gov>
Signed-off-by: Damien L-G <dalg24@gmail.com>
[5.1.0] Fix -Wundef warnings about KOKKOS_VERSION* not being defined
[5.1.0] Identify homebrew llvm as KOKKOS_COMPILER_CLANG
Signed-off-by: Seyong Lee <lees2@ornl.gov>
Signed-off-by: Christian Trott <crtrott@sandia.gov>
Co-authored-by: Daniel Arndt <arndtd@ornl.gov>
Co-authored-by: Jakob Bludau <104908666+JBludau@users.noreply.github.com>
Co-authored-by: Damien L-G <dalg24+github@gmail.com>
Co-authored-by: Nathan Ellingwood <ndellin@sandia.gov>
Co-authored-by: Trévis Morvany <63788850+tretre91@users.noreply.github.com>
Co-authored-by: Christian Trott <crtrott@sandia.gov>
…8967)

* Fix subview construction between managed and unmanaged Views
* Add test

Signed-off-by: Daniel Arndt <arndtd@ornl.gov>
Signed-off-by: Damien L-G <dalg24@gmail.com>
…ubview_constructor

[5.1.0] Fix subview construction between managed and unmanaged Views
Signed-off-by: Damien L-G <dalg24@gmail.com>
…-parallel-scan

OpenACC: fix parallel_scan chunk boundary race
(cherry picked from commit 1e1a31e)

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates Kokkos to version 5.1.1 and includes a detailed changelog for the 5.1.0 release. The code changes involve a refactor of the OpenACC parallel_scan implementation to optimize prefix reconstruction, improved compiler identification for Apple Clang, and the addition of an explicit cast in BasicView to handle subview offsets. New unit tests were also added to verify unmanaged subview construction. I have no feedback to provide.

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