test: print pointers on fail in commandlist_immediate test

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe 2024-02-28 11:33:19 +00:00 committed by Compute-Runtime-Automation
parent a023b40c90
commit 07bac479ab
1 changed files with 6 additions and 0 deletions

View File

@ -81,6 +81,12 @@ void testAppendMemoryCopy(ze_context_handle_t &context, ze_device_handle_t &devi
// Validate stack and ze buffers have the original data from heapBuffer
validRet = LevelZeroBlackBoxTests::validate(heapBuffer, stackBuffer, allocSize);
if (!validRet) {
std::cerr << "Data mismatches found!\n";
std::cerr << "heapBuffer == " << static_cast<void *>(heapBuffer) << "\n";
std::cerr << "stackBuffer == " << static_cast<void *>(stackBuffer) << std::endl;
}
delete[] heapBuffer;
SUCCESS_OR_TERMINATE(zeMemFree(context, zeBuffer));
if (sharedCmdList == nullptr) {