You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With #539, we no longer return the trailing \0 character in the compilation log. However, when there's nothing else in the log - we're currently mishandling the situation, by asking CUDA to retrieve a size-N log (including the trailing '\0') into a size-N-1 buffer. Let's not do that.
Also, when some kind of string is of size 0, we should not bother to try and retrieve it anyway.
The text was updated successfully, but these errors were encountered:
eyalroz
changed the title
Support size-0 compilation logs
Avoid trying to stick compilation logs of size N into buffers of size N-1 + size-0 fix
Oct 3, 2023
eyalroz
changed the title
Avoid trying to stick compilation logs of size N into buffers of size N-1 + size-0 fix
Avoid trying to stick compilation logs of size N into buffers of size N-1 + Fix size-0 handling
Oct 3, 2023
* Not trying to make an actual retrieval API call for a size-0 buffer/string (or size-1 compilation log, since it's just the trailing '\0')
* Ensuring our buffer for the compilation log accommodates the trailing '\0'
* Not trying to make an actual retrieval API call for a size-0 buffer/string (or size-1 compilation log, since it's just the trailing '\0')
* Ensuring our buffer for the compilation log accommodates the trailing '\0'
* Reducing NVRTC's reported compilation log length by 1
* Not trying to make an actual retrieval API call for a size-0 buffer/string (or size-1 compilation log, since it's just the trailing '\0')
* Ensuring our buffer for the compilation log accommodates the trailing '\0' (and discards it)
With #539, we no longer return the trailing
\0
character in the compilation log. However, when there's nothing else in the log - we're currently mishandling the situation, by asking CUDA to retrieve a size-N log (including the trailing '\0') into a size-N-1 buffer. Let's not do that.Also, when some kind of string is of size 0, we should not bother to try and retrieve it anyway.
The text was updated successfully, but these errors were encountered: