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

Add detail_ function for allocating host memory in the current context #588

Closed eyalroz closed 6 months ago

eyalroz commented 7 months ago

Currently, our host memory allocation function goes through a few hoops to ensure there's a current context before actually allocating anything. Instead, let's handle the context setting properly, as we do elsewhere in the wrapper library.