Skip to content

[cudax] Define _CUDAX_ENABLE_GROUP_FEATURES_IN_LIBCUDACXX globally in cudax#9180

Merged
davebayer merged 1 commit into
NVIDIA:mainfrom
davebayer:define_macro_enabling_group_features_globally
May 29, 2026
Merged

[cudax] Define _CUDAX_ENABLE_GROUP_FEATURES_IN_LIBCUDACXX globally in cudax#9180
davebayer merged 1 commit into
NVIDIA:mainfrom
davebayer:define_macro_enabling_group_features_globally

Conversation

@davebayer
Copy link
Copy Markdown
Contributor

No description provided.

@davebayer davebayer requested review from a team as code owners May 29, 2026 09:07
@davebayer davebayer requested review from andralex and miscco May 29, 2026 09:07
@github-project-automation github-project-automation Bot moved this to Todo in CCCL May 29, 2026
@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Review in CCCL May 29, 2026
@davebayer davebayer force-pushed the define_macro_enabling_group_features_globally branch from 4e9bdbe to c5b273b Compare May 29, 2026 09:16
@davebayer davebayer changed the title [cudax] Define _CUDAX_ENABLE_GROUP globally in cudax [cudax] Define _CUDAX_ENABLE_GROUP_FEATURES_IN_LIBCUDACXX globally in cudax May 29, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 29, 2026

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 5a006d80-8ce2-4f37-bbed-b0de35f873f9

📥 Commits

Reviewing files that changed from the base of the PR and between c5b273b and 5233f2f.

📒 Files selected for processing (4)
  • cudax/cmake/cudaxBuildCompilerTargets.cmake
  • cudax/test/CMakeLists.txt
  • libcudacxx/include/cuda/__hierarchy/hierarchy_level_base.h
  • libcudacxx/include/cuda/__hierarchy/native_hierarchy_level_base.h
💤 Files with no reviewable changes (1)
  • cudax/test/CMakeLists.txt
✅ Files skipped from review due to trivial changes (2)
  • cudax/cmake/cudaxBuildCompilerTargets.cmake
  • libcudacxx/include/cuda/__hierarchy/hierarchy_level_base.h
🚧 Files skipped from review as they are similar to previous changes (1)
  • libcudacxx/include/cuda/__hierarchy/native_hierarchy_level_base.h

📝 Walkthrough

Summary by CodeRabbit

  • Refactor
    • Enabled experimental group-related features in the CUDA C++ library build.
  • Tests
    • Adjusted test build setup so the group-related build flag is no longer applied on a per-test basis.

suggestion:

Walkthrough

This PR centralizes enabling of experimental "group" code by adding _CUDAX_ENABLE_GROUP_FEATURES_IN_LIBCUDACXX to global compiler definitions and updates hierarchy headers to use that macro instead of the per-target _CUDAX_GROUP definition.

Changes

Group feature gate migration

Layer / File(s) Summary
Global macro definition and test cleanup
cudax/cmake/cudaxBuildCompilerTargets.cmake, cudax/test/CMakeLists.txt
CMake appends _CUDAX_ENABLE_GROUP_FEATURES_IN_LIBCUDACXX to global cxx_compile_definitions; per-test target_compile_definitions(... _CUDAX_GROUP) entries are removed from group test executables.
Header guard migration
libcudacxx/include/cuda/__hierarchy/hierarchy_level_base.h, libcudacxx/include/cuda/__hierarchy/native_hierarchy_level_base.h
Preprocessor guards that previously used #if defined(_CUDAX_GROUP) are updated to #if defined(_CUDAX_ENABLE_GROUP_FEATURES_IN_LIBCUDACXX) for group-related includes, APIs, and aliases.

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
cudax/cmake/cudaxBuildCompilerTargets.cmake (1)

40-42: ⚡ Quick win

suggestion: Remove duplicate phrase in comment. Line 41-42 contains "to get access to get access to the code" - the phrase "get access to" is repeated.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 0598ad2f-5428-49d7-842e-6e1592bc7746

📥 Commits

Reviewing files that changed from the base of the PR and between d083f97 and 4e9bdbe.

📒 Files selected for processing (4)
  • cudax/cmake/cudaxBuildCompilerTargets.cmake
  • cudax/test/CMakeLists.txt
  • libcudacxx/include/cuda/__hierarchy/hierarchy_level_base.h
  • libcudacxx/include/cuda/__hierarchy/native_hierarchy_level_base.h
💤 Files with no reviewable changes (1)
  • cudax/test/CMakeLists.txt

@davebayer davebayer force-pushed the define_macro_enabling_group_features_globally branch from c5b273b to 5233f2f Compare May 29, 2026 09:18
@davebayer davebayer enabled auto-merge (squash) May 29, 2026 09:23
@github-actions
Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 1h 15m: Pass: 100%/159 | Total: 2d 04h | Max: 1h 15m | Hits: 87%/664974

See results here.

@davebayer davebayer merged commit 0646653 into NVIDIA:main May 29, 2026
179 of 180 checks passed
@github-project-automation github-project-automation Bot moved this from In Review to Done in CCCL May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants