8000 Avoid more TU-local symbols by masterleinad · Pull Request #8173 · kokkos/kokkos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Avoid more TU-local symbols #8173

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 1 commit into
base: develop
Choose a base branch
from

Conversation

masterleinad
Copy link
Contributor
@masterleinad masterleinad commented Jun 13, 2025

Related to #8117 (g++ in particular). This pull request avoids more TU-local symbols in headers that are problematic when creating C++20 modules.
In particular,

  • avoid unnamed namespaces in headers. I ignored the ones used in core/src/Cuda/Kokkos_Cuda_Task.hpp, containers/src/Kokkos_StaticCrsGraph.hpp and containers/src/Kokkos_Vector.hpp since I intend to only care about modules when deprecated code is disabled and we thus won't include them in any module anyway.
  • avoid (explicit) static global symbols.

Signed-off-by: Daniel Arndt <arndtd@ornl.gov>
Copy link
Contributor
@JBludau JBludau left a comment

Choose a reason for hiding this comment

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

lgtm

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.

3 participants
0