Skip to content

Conversation

@fbusato
Copy link
Contributor

@fbusato fbusato commented Dec 13, 2025

Description

Goal: Provide a synchronous memory-owning version of mdspan for both host and device memory.

  • The functionalities should be aligned with thrust::host/device_vector to not surprise users.
  • Unlike thrust::host/device_vector, mdarray is NOT a container and doesn't support iterators.
  • Should be able to replace Rapids implementation.

The implementation is based on the CRTP pattern + mdspan inheritance. The host/device_mdarray class are minimal.
It supports the standard copy/move semantic and host/device interaction, e.g. copy device to host

Open points:

  • asynchronous version. Possible but could be misused. Out-of-scope for the first PR.

Todo list:

  • [Most Important] get feedback
  • Mirror device_mdarray test for host_mdarray
  • Consider non-initialized version of constructors.
  • Address TODO in the code.
  • Documentation.

@fbusato fbusato self-assigned this Dec 13, 2025
@fbusato fbusato requested a review from a team as a code owner December 13, 2025 01:01
@fbusato fbusato added the 3.2.0 Targeted for 3.2.0 release label Dec 13, 2025
@fbusato fbusato requested a review from a team as a code owner December 13, 2025 01:01
@fbusato fbusato added this to CCCL Dec 13, 2025
@fbusato fbusato requested a review from ericniebler December 13, 2025 01:01
@github-project-automation github-project-automation bot moved this to Todo in CCCL Dec 13, 2025
@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Review in CCCL Dec 13, 2025
@fbusato fbusato marked this pull request as draft December 13, 2025 01:02
@copy-pr-bot
Copy link
Contributor

copy-pr-bot bot commented Dec 13, 2025

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 In Review to In Progress in CCCL Dec 13, 2025
@github-actions
Copy link
Contributor

😬 CI Workflow Results

🟥 Finished in 1h 31m: Pass: 72%/122 | Total: 2d 03h | Max: 1h 30m | Hits: 93%/196064

See results here.

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

Labels

3.2.0 Targeted for 3.2.0 release

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant