Files
compute-runtime/opencl/test/unit_test
Artem Gindinson 6f3503af38 Fix concatenation of FE/BE compilation log strings
Due to the mixed usage of `std::string` objects and C-strings, null terminator
characters sometimes propagate into possible `program::updateBuildLog()`
inputs. In particular, `TranslationOutput::frontendCompilerLog` and
`::backendCompilerLog` get set this way within the `CompilerInterface::build()`
API implementation.

This becomes an issue whenever each of CL -> IR and IR -> ISA compilation steps
emits their warnings and/or errors:
`clGetProgramBuildInfo(..., CL_PROGRAM_BUILD_LOG, ...)` also relies on
`std::string` to C-string conversion, so the output is trimmed at the first
null terminator, i.e. the BE part of the build log simply gets lost.

The change handles possible null terminators within `program::updateBuildLog()`
and adds relevant regression tests.

Related-To: IGC-6509
Signed-off-by: Artem Gindinson <artem.gindinson@intel.com>
2023-02-06 14:18:50 +01:00
..
2023-01-13 08:22:14 +01:00
2023-01-13 08:22:14 +01:00
2023-01-13 08:22:14 +01:00
2023-01-27 14:31:05 +01:00
2023-01-04 10:40:26 +01:00
2023-01-30 10:41:42 +01:00
2023-01-27 14:31:05 +01:00
2023-01-11 16:10:28 +01:00
2023-01-13 08:22:14 +01:00
2023-01-13 08:22:14 +01:00
2022-07-04 18:20:07 +02:00