Skip to content

Add basic communicator concept#9426

Open
Jacobfaib wants to merge 1 commit into
NVIDIA:mainfrom
Jacobfaib:jacobf/2026-06-10/communicator-concept
Open

Add basic communicator concept#9426
Jacobfaib wants to merge 1 commit into
NVIDIA:mainfrom
Jacobfaib:jacobf/2026-06-10/communicator-concept

Conversation

@Jacobfaib

Copy link
Copy Markdown
Contributor

Description

closes

Checklist

  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@Jacobfaib Jacobfaib self-assigned this Jun 12, 2026
@github-project-automation github-project-automation Bot moved this to Todo in CCCL Jun 12, 2026
@copy-pr-bot

copy-pr-bot Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Progress in CCCL Jun 12, 2026
@Jacobfaib Jacobfaib mentioned this pull request Jun 12, 2026
2 tasks
@Jacobfaib

Copy link
Copy Markdown
Contributor Author

/ok to test

1 similar comment
@Jacobfaib

Copy link
Copy Markdown
Contributor Author

/ok to test

@github-actions

This comment has been minimized.

Comment thread cudax/include/cuda/experimental/__multi_gpu/concepts.h
@Jacobfaib Jacobfaib force-pushed the jacobf/2026-06-10/communicator-concept branch from 6b75ba3 to e68912d Compare June 12, 2026 19:51
@Jacobfaib

Copy link
Copy Markdown
Contributor Author

/ok to test

@Jacobfaib Jacobfaib marked this pull request as ready for review June 12, 2026 20:25
@Jacobfaib Jacobfaib requested review from a team as code owners June 12, 2026 20:25
@cccl-authenticator-app cccl-authenticator-app Bot moved this from In Progress to In Review in CCCL Jun 12, 2026
@coderabbitai

This comment was marked as resolved.

@coderabbitai coderabbitai Bot left a comment

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.

Actionable comments posted: 7

🧹 Nitpick comments (1)
cudax/test/multi_gpu/concepts/communicator.cu (1)

37-43: ⚡ Quick win

suggestion: test() on Line [37] is a compile-time helper and does not throw; add noexcept for consistency with the concept-check helper convention. Apply the same change to has_all_reduce.cu (Line [42]) and has_gather.cu (Line [35]) to keep this test suite uniform. As per coding guidelines, compile-time concept-check helpers should remain constexpr and non-throwing helpers should be noexcept.

Source: Coding guidelines


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 4bf05b18-5d26-4234-8913-c4c9fd2b92e4

📥 Commits

Reviewing files that changed from the base of the PR and between 61493f8 and 69afd7a.

📒 Files selected for processing (17)
  • cudax/include/cuda/experimental/__multi_gpu/concepts.h
  • cudax/test/CMakeLists.txt
  • cudax/test/multi_gpu/CMakeLists.txt
  • cudax/test/multi_gpu/concepts/CMakeLists.txt
  • cudax/test/multi_gpu/concepts/collective_concepts_common.cuh
  • cudax/test/multi_gpu/concepts/communicator.cu
  • cudax/test/multi_gpu/concepts/concepts_common.cuh
  • cudax/test/multi_gpu/concepts/has_all_gather.cu
  • cudax/test/multi_gpu/concepts/has_all_reduce.cu
  • cudax/test/multi_gpu/concepts/has_all_to_all.cu
  • cudax/test/multi_gpu/concepts/has_all_to_all_v.cu
  • cudax/test/multi_gpu/concepts/has_broadcast.cu
  • cudax/test/multi_gpu/concepts/has_gather.cu
  • cudax/test/multi_gpu/concepts/has_gather_v.cu
  • cudax/test/multi_gpu/concepts/has_recv.cu
  • cudax/test/multi_gpu/concepts/has_reduce.cu
  • cudax/test/multi_gpu/concepts/has_send.cu

Comment thread cudax/include/cuda/experimental/__multi_gpu/concepts.h Outdated
Comment thread cudax/test/multi_gpu/concepts/collective_concepts_common.cuh
Comment thread cudax/test/multi_gpu/concepts/has_all_gather.cu
Comment thread cudax/test/multi_gpu/concepts/has_broadcast.cu
Comment thread cudax/test/multi_gpu/concepts/has_gather_v.cu
Comment thread cudax/test/multi_gpu/concepts/has_reduce.cu
Comment thread cudax/test/multi_gpu/concepts/has_reduce.cu
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@Jacobfaib Jacobfaib force-pushed the jacobf/2026-06-10/communicator-concept branch from 0009a44 to c2bd580 Compare June 12, 2026 23:12

@coderabbitai coderabbitai Bot left a comment

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.

🧹 Nitpick comments (1)
cudax/test/multi_gpu/concepts/has_all_reduce.cu (1)

28-38: 📐 Maintainability & Code Quality | ⚡ Quick win

suggestion: Template parameters Tp and Op should use the reserved-identifier convention (_Tp, _Op) to match the style in the actual __has_all_reduce implementation (which uses _Comm, _Ptr). Based on learnings, the guideline "use _Tp, not _T" indicates the underscore prefix is the preferred form for template parameters in cudax code.

Source: Coding guidelines


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 271f63bb-98c5-48fa-bce0-7227a1b7d398

📥 Commits

Reviewing files that changed from the base of the PR and between 0009a44 and c2bd580.

📒 Files selected for processing (17)
  • cudax/include/cuda/experimental/__multi_gpu/concepts.h
  • cudax/test/CMakeLists.txt
  • cudax/test/multi_gpu/CMakeLists.txt
  • cudax/test/multi_gpu/concepts/CMakeLists.txt
  • cudax/test/multi_gpu/concepts/collective_concepts_common.cuh
  • cudax/test/multi_gpu/concepts/communicator.cu
  • cudax/test/multi_gpu/concepts/concepts_common.cuh
  • cudax/test/multi_gpu/concepts/has_all_gather.cu
  • cudax/test/multi_gpu/concepts/has_all_reduce.cu
  • cudax/test/multi_gpu/concepts/has_all_to_all.cu
  • cudax/test/multi_gpu/concepts/has_all_to_all_v.cu
  • cudax/test/multi_gpu/concepts/has_broadcast.cu
  • cudax/test/multi_gpu/concepts/has_gather.cu
  • cudax/test/multi_gpu/concepts/has_gather_v.cu
  • cudax/test/multi_gpu/concepts/has_recv.cu
  • cudax/test/multi_gpu/concepts/has_reduce.cu
  • cudax/test/multi_gpu/concepts/has_send.cu
🚧 Files skipped from review as they are similar to previous changes (15)
  • cudax/test/multi_gpu/CMakeLists.txt
  • cudax/test/multi_gpu/concepts/has_all_to_all.cu
  • cudax/test/multi_gpu/concepts/has_reduce.cu
  • cudax/test/multi_gpu/concepts/has_broadcast.cu
  • cudax/test/multi_gpu/concepts/concepts_common.cuh
  • cudax/test/multi_gpu/concepts/has_gather_v.cu
  • cudax/test/multi_gpu/concepts/communicator.cu
  • cudax/test/multi_gpu/concepts/has_gather.cu
  • cudax/test/multi_gpu/concepts/has_all_to_all_v.cu
  • cudax/test/multi_gpu/concepts/has_recv.cu
  • cudax/test/multi_gpu/concepts/collective_concepts_common.cuh
  • cudax/test/multi_gpu/concepts/has_all_gather.cu
  • cudax/test/multi_gpu/concepts/has_send.cu
  • cudax/include/cuda/experimental/__multi_gpu/concepts.h
  • cudax/test/multi_gpu/concepts/CMakeLists.txt

@github-actions

This comment has been minimized.

@Jacobfaib Jacobfaib force-pushed the jacobf/2026-06-10/communicator-concept branch from c2bd580 to 14ebfba Compare June 13, 2026 14:01
@github-actions

Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 33m 37s: Pass: 100%/55 | Total: 4h 09m | Max: 33m 34s | Hits: 100%/34803

See results here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

2 participants