eyalroz / cuda-api-wrappers

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

Let a mapped pair of spans "decay" into a pair of regions #647

Closed eyalroz closed 3 months ago

eyalroz commented 3 months ago

The mapped pair of spans (cuda::memory::mapped::span_pair_t<T>) is a bit of a kludgy type. Let's make it a little more flexible by allowing it to "decay" into a pair of untyped memory regions.