eyalroz / cuda-api-wrappers

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

Need a convenient function for getting a kernel from a __global__ function #469

Closed eyalroz closed 1 year ago

eyalroz commented 1 year ago

While the wrappers offer convenient functions for obtaining kernel_t's from modules, there is no convenient named-constructor-idiom for getting a kernel_t based on a baked-in __global__ function. Perhaps something like a cuda::kernel::from_function() ?

eyalroz commented 1 year ago

Forgot we already had kernel::get(). But perhaps that's not such a great name?