eyalroz / cuda-api-wrappers

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

Use region_t's for mapped memory #594

Closed eyalroz closed 4 months ago

eyalroz commented 6 months ago

The cuda::memory::mapped::region_pair structure uses two raw pointers and a size field. Instead, let's make it a pair of memory::region_t's. Yes, it is a bit "wasteful" - another size_t value; but much more usable, and the pair might be optimized away, anyway.