Skip to content

Conversation

@dssgabriel
Copy link
Collaborator

This PR constrains the CommunicationSpace concept with the following required member type aliases:

  • typename communication_space
  • typename handle_type
  • typename request_type
  • typename datatype_type
  • typename reduction_op_type
  • typename rank_type

Of course, we may add more/remove some of these in the future.

This allows us to implement CommunicationSpace-generic APIs for Kokkos Comm (e.g. the datatype conversion alternative mentioned in #186).

I also renamed our existing communication spaces Mpi and Nccl to MpiSpace and NcclSpace respectively, and propagated the change everywhere necessary.
This removes any naming ambiguity, matches the name of the header they are declared in, and also happens to correspond to the naming semantic using in Kokkos Remote Spaces (see, e.g., https://github.com/kokkos/kokkos-remote-spaces/blob/main/src/impl/mpispace/Kokkos_MPISpace.hpp).

@dssgabriel dssgabriel self-assigned this Nov 28, 2025
@dssgabriel dssgabriel added C-enhancement Category: an enhancement or bug fix E-help-wanted Call for participation: help is requested and/or extra attention is needed A-core Area: KokkosComm core library implementation labels Nov 28, 2025
@dssgabriel dssgabriel changed the title refactor!: constrain communication space concepts refactor!: add more requirements to the CommunicationSpace concept Nov 28, 2025
@cedricchevalier19 cedricchevalier19 force-pushed the refactor/comm-space-concept branch from a1f4b36 to 8047a39 Compare December 8, 2025 13:46
Signed-off-by: Cedric Chevalier <[email protected]>
Signed-off-by: Cedric Chevalier <[email protected]>
@cedricchevalier19 cedricchevalier19 merged commit 901ccc7 into kokkos:develop Dec 8, 2025
9 of 11 checks passed
@dssgabriel dssgabriel deleted the refactor/comm-space-concept branch December 8, 2025 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-core Area: KokkosComm core library implementation C-enhancement Category: an enhancement or bug fix E-help-wanted Call for participation: help is requested and/or extra attention is needed SNL-CI-APPROVAL Required to run SNL CI on non-SNL contributions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants