test: zello_bindless_kernel fix

- break on first test case failure

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2024-04-22 21:47:36 +00:00
committed by Compute-Runtime-Automation
parent d122e1c906
commit e0dc228489

View File

@@ -299,6 +299,9 @@ void run(const ze_kernel_handle_t &copyKernel, const ze_kernel_handle_t &fillKer
uint8_t *dstCharBuffer = static_cast<uint8_t *>(dstBuffer);
if (dstCharBuffer[0] == finalValue) {
outputValidationSuccessful = true;
} else {
std::cout << "dstCharBuffer[0] != finalValue\n"
<< "dstCharBuffer[0]==" << static_cast<uint32_t>(dstCharBuffer[0]) << " finalValue==" << static_cast<uint32_t>(finalValue) << std::endl;
}
}
@@ -325,6 +328,8 @@ bool testBindlessBufferCopy(ze_context_handle_t context, ze_device_handle_t devi
run(copyKernel, fillKernel, context, device, 0, mode, outputValidated);
if (!outputValidated) {
std::cout << "testBindlessBufferCopy with mode " << static_cast<uint32_t>(mode) << " failed.\n"
<< std::endl;
break;
}
}
@@ -1125,6 +1130,9 @@ int main(int argc, char *argv[]) {
if (testCase != -1) {
break;
}
if (!outputValidated) {
break;
}
}
SUCCESS_OR_TERMINATE(zeContextDestroy(context));