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

Have the global-device-memory versions of make_unique and make_unique_region be the default #585

Closed eyalroz closed 6 months ago

eyalroz commented 7 months ago

Right now, we don't accept cuda::memory::make_unique<T>, nor cuda::memory::make_unique_region - you have to use a subnamespace - one of device::, host:: or managed::. But - if you say:

cuda::memory::make_unique_region(my_device, 1234);

it's pretty obvious you want plain vanilla device-side memory. So, let's accept that.