Do not append terminating NUL to the binary string with embedded fatbin.
authorArtem Belevich <tra@google.com>
Wed, 12 Oct 2022 23:41:28 +0000 (16:41 -0700)
committerArtem Belevich <tra@google.com>
Mon, 17 Oct 2022 22:39:39 +0000 (15:39 -0700)
commita10eb07d1acc2f132b4d0cf522097814a8340b47
tree115806ce3420231bb7252139aff9c2078c136f8b
parent0e4802bf45952b1120c52d4d1bf6bfa2800fd102
Do not append terminating NUL to the binary string with embedded fatbin.

Extra NUL does not impact functionality of the generated code, but it confuses
various NVIDIA tools used to examine embedded GPU binaries.

Differential Revision: https://reviews.llvm.org/D135832
clang/lib/CodeGen/CGCUDANV.cpp
clang/test/CodeGenCUDA/device-stub.cu