NVIDIA / NVIDIA/cccl

[EPIC]: `mdspan`-based algorithms

Open
#2,471 0 comments 0 reactions 1 assignee Claimed by @fbusato View on GitHub
Dominant language
C++
Stars
2.5k
Forks
486
Avg merge
2d 6h
Merged PRs (30d)
295

Description

### Is this a duplicate?

- [x] I confirmed there appear to be no [duplicate issues](https://github.com/NVIDIA/cccl/issues) for this request and that I agree to the [Code of Conduct](CODE_OF_CONDUCT.md)

### Area

libcu++

### Is your feature request related to a problem? Please describe.

1. `mdspan` represents the C++ abstraction for multidimensional data. We currently support only a small subset of available features
2. The `llm.c` version presented to the [CUDA MODE](https://github.com/cuda-mode) group can be greatly simplified and improved by supporting additional features related to `mdspan`

### Describe the solution you'd like

- Provide a `cuda::` `streaming accessor` instead of manually instantiate it
- Allow `mdspan` to support device-only/host-only code for custom accessors and layouts
- Provide `for_each_in_extent` to directly linearization/de-linearization multidimensional indices
- Provide `mdarray` (owning version of `mdspan`)
- Provide a vocabulary type to declare host or device `mdspan/mdarray`

### Describe alternatives you've considered

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.