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

"Robustify" the RTC buffer getters (log, ptx, lto_ir) #609

Closed eyalroz closed 4 months ago

eyalroz commented 6 months ago

Using the opportunity of our API for buffer getters in the RTC program output changing from the not-really-dynarray to a span, let's also make sure all of the actual-text-strings there are put in buffers with a trailing '\0'. This is not strictly necessary, as a span is not guaranteed to also work as a C-style, nul-terminated string - but it's safer if we do that, in case someone mishandles the returned container and treats its data like that.