cuda-api-wrappers icon indicating copy to clipboard operation
cuda-api-wrappers copied to clipboard

Compilation log vector<char> contains trailing '\0'

Open eyalroz opened this issue 3 years ago • 0 comments

It seems nvrtcGetProgramLogSize() includes 1 for a trailing '\0' character, and so we end up placing it in our return value - which is not a C-style string. Let's not do that.

eyalroz avatar Jun 25 '22 07:06 eyalroz