Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEA]: cuda::span<T, Properties...> a safe view over - heterogeneous - memory #2133

Open
miscco opened this issue Jul 31, 2024 · 1 comment
Assignees
Labels
feature request New feature or request. libcu++ For all items related to libcu++

Comments

@miscco
Copy link
Collaborator

miscco commented Jul 31, 2024

We want to extent the property based design for safe heterogeneous memory accesses to view types.

This will most likely require us to implement an iterator type that does the right and then guard all direct memory accesses.

@github-project-automation github-project-automation bot moved this to Todo in CCCL Jul 31, 2024
@miscco miscco changed the title cuda::span<T, Properties...> [FEA]: cuda::span<T, Properties...> a safe view over - heterogeneous - memory Jul 31, 2024
@miscco miscco self-assigned this Jul 31, 2024
@miscco miscco added feature request New feature or request. libcu++ For all items related to libcu++ labels Jul 31, 2024
@bernhardmgruber
Copy link
Contributor

I was thinking about span and using it over raw pointers in some of the CUB agents the other night. I wondered whether we need a customizable index type, so we can use a 32-bit integer to store the length. mdspan has this customization and IIRC the proposal authors were motivated by GPU codes as use case for this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request. libcu++ For all items related to libcu++
Projects
Status: Todo
Development

No branches or pull requests

2 participants