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

Rework the range_attribute_t and advice code #640

Closed eyalroz closed 3 months ago

eyalroz commented 4 months ago

Managed memory "ranges" have "attributes" in CUDA. But our class name for "ranges" of memory - managed or otherwise - is memory::managed::region_t. Also - it's not obvious we should even expose these "attribute" and "advice" types, at all; perhaps we can just keep them within detail_. Some refactoring seems to be in order.