Skip to content

Conversation

@fbusato
Copy link
Contributor

@fbusato fbusato commented Nov 22, 2025

Description

Replace old code in host/device/managed mdspan with https://nvidia.github.io/cccl/libcudacxx/extended_api/memory/is_pointer_accessible.html

@fbusato fbusato self-assigned this Nov 22, 2025
@fbusato fbusato added the 3.2.0 Targeted for 3.2.0 release label Nov 22, 2025
@fbusato fbusato requested a review from a team as a code owner November 22, 2025 02:03
@fbusato fbusato added this to CCCL Nov 22, 2025
@fbusato fbusato requested a review from wmaxey November 22, 2025 02:03
@github-project-automation github-project-automation bot moved this to Todo in CCCL Nov 22, 2025
@fbusato fbusato changed the title Applies `is_pointer_accessible to mdspan Applies is_pointer_accessible to mdspan Nov 22, 2025
@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Review in CCCL Nov 22, 2025
@github-actions

This comment has been minimized.

@github-project-automation github-project-automation bot moved this from In Review to In Progress in CCCL Nov 22, 2025
@fbusato fbusato moved this from In Progress to In Review in CCCL Nov 24, 2025
@fbusato fbusato requested a review from davebayer November 24, 2025 19:23
@fbusato
Copy link
Contributor Author

fbusato commented Nov 24, 2025

@davebayer @miscco I'm starting thinking that we are doing the wrong thing for host/device/managed.
There are two problems:

  1. We cannot check the pointer validity in respect to the memory space for EVERY access. This involves multiple driver calls. This is too expensive even in debug mode.
  2. We cannot check the device accessibility on the host because its access is always wrong on the host side.

Ideally, mdspan itself should check the pointer during the creating, not during run-time. Two potential solutions:

  • cuda:std::mdpan checks __detectably_invalid.
  • Modify the host/device/managed_mdspan constructs to check the memory space.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

🥳 CI Workflow Results

🟩 Finished in 1h 58m: Pass: 100%/90 | Total: 1d 14h | Max: 1h 58m | Hits: 85%/205679

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 Review

Development

Successfully merging this pull request may close these issues.

3 participants