eyalroz / cuda-api-wrappers

Thin, unified, C++-flavored wrappers for the CUDA APIs
BSD 3-Clause "New" or "Revised" License
790 stars 80 forks source link

Support converting regions into spans - at least explicitly #483

Closed eyalroz closed 1 year ago

eyalroz commented 1 year ago

Sometimes you want to take an untyped region of memory and treat it as a span (e.g. when you don't care about the values being uninitialized, and when you know the alignment and size are ok). We don't provide proper support for this right now... let's have it via an operator span<U> for memory regions.