test: improve reliability

Related-To: NEO-12650

Signed-off-by: Tomasz Biernacik <tomasz.biernacik@intel.com>
This commit is contained in:
Tomasz Biernacik 2025-02-10 12:52:01 +00:00 committed by Compute-Runtime-Automation
parent 3c813417ee
commit a78ffbc855
2 changed files with 11 additions and 3 deletions

View File

@ -90,6 +90,8 @@ void printResult(bool aubMode, bool outputValidationSuccessful, const std::strin
void printResult(bool aubMode, bool outputValidationSuccessful, const std::string &blackBoxName);
std::vector<ze_command_queue_group_properties_t> &getDeviceQueueProperties(ze_device_handle_t device);
uint32_t getCommandQueueOrdinal(ze_device_handle_t &device, bool useCooperativeFlag);
std::vector<uint32_t> getComputeQueueOrdinals(ze_device_handle_t &device);

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2021-2024 Intel Corporation
* Copyright (C) 2021-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -238,7 +238,7 @@ void testRegionCopyOf2DSharedMem(ze_context_handle_t &context, ze_device_handle_
}
}
int value = 0;
uint8_t value = 0;
SUCCESS_OR_TERMINATE(zeCommandListAppendMemoryFill(cmdList, dstBuffer, reinterpret_cast<void *>(&value),
sizeof(value), dstSize, nullptr, 0, nullptr));
@ -308,6 +308,12 @@ void testSharedMemDataAccessWithoutCopy(ze_context_handle_t &context, ze_device_
return;
}
if (LevelZeroBlackBoxTests::getDeviceQueueProperties(device).at(copyQueueGroup).maxMemoryFillPatternSize < pattern1Size) {
std::cout << "testSharedMemDataAccessWithoutCopy case not supported. Skipping test run\n";
validRet = true;
return;
}
cmdQueueDesc.pNext = nullptr;
cmdQueueDesc.flags = 0;
cmdQueueDesc.mode = ZE_COMMAND_QUEUE_MODE_ASYNCHRONOUS;
@ -487,7 +493,7 @@ void testRegionCopyOf3DSharedMem(ze_context_handle_t &context, ze_device_handle_
}
}
int value = 0;
uint8_t value = 0;
SUCCESS_OR_TERMINATE(zeCommandListAppendMemoryFill(cmdList, dstBuffer, reinterpret_cast<void *>(&value),
sizeof(value), dstSize, nullptr, 0, nullptr));