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

Reduce code repetition between context_t and primary_context_t #614

Closed eyalroz closed 3 months ago

eyalroz commented 5 months ago

There's quite a bit of code repetition between context_t and primary_context_t, due mostly to differentiated handling of flags. However, we can reduce this, especially if we shuffle the location in which we protect against the use of the deprecated CU_CTX_MAP_HOST flag.