mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-12 17:33:00 +08:00
test: use default context in L0 black box tests
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
72b727e70e
commit
536585e8bc
@@ -19,6 +19,7 @@
|
||||
#endif
|
||||
|
||||
namespace LevelZeroBlackBoxTests {
|
||||
decltype(&zerDriverGetDefaultContext) zerDriverGetDefaultContextFunc = nullptr;
|
||||
|
||||
struct LoadedDriverExtensions {
|
||||
std::vector<ze_driver_extension_properties_t> extensions;
|
||||
@@ -451,8 +452,16 @@ std::vector<ze_device_handle_t> zelloInitContextAndGetDevices(ze_context_handle_
|
||||
}
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeDriverGet(&driverCount, &driverHandle));
|
||||
ze_context_desc_t contextDesc = {ZE_STRUCTURE_TYPE_CONTEXT_DESC, nullptr, 0};
|
||||
SUCCESS_OR_TERMINATE(zeContextCreate(driverHandle, &contextDesc, &context));
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeDriverGetExtensionFunctionAddress(driverHandle, "zerDriverGetDefaultContext", reinterpret_cast<void **>(&zerDriverGetDefaultContextFunc)));
|
||||
|
||||
context = zerDriverGetDefaultContextFunc();
|
||||
if (!context) {
|
||||
const char *description = nullptr;
|
||||
SUCCESS_OR_TERMINATE(zeDriverGetLastErrorDescription(driverHandle, &description));
|
||||
std::cerr << "Failed to get default context: " << (description ? description : "Unknown error") << "\n";
|
||||
std::terminate();
|
||||
}
|
||||
|
||||
uint32_t deviceCount = 0;
|
||||
SUCCESS_OR_TERMINATE(zeDeviceGet(driverHandle, &deviceCount, nullptr));
|
||||
@@ -500,9 +509,8 @@ bool checkImageSupport(ze_device_handle_t hDevice, bool test1D, bool test2D, boo
|
||||
return true;
|
||||
}
|
||||
|
||||
void teardown(ze_context_handle_t context, ze_command_queue_handle_t cmdQueue) {
|
||||
void teardown(ze_command_queue_handle_t cmdQueue) {
|
||||
SUCCESS_OR_TERMINATE(zeCommandQueueDestroy(cmdQueue));
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
}
|
||||
|
||||
void printDeviceProperties(const ze_device_properties_t &props) {
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include "level_zero/driver_experimental/zex_event.h"
|
||||
#include <level_zero/ze_api.h>
|
||||
#include <level_zero/ze_intel_gpu.h>
|
||||
|
||||
#include <bitset>
|
||||
#include <fstream>
|
||||
@@ -21,6 +22,7 @@
|
||||
namespace LevelZeroBlackBoxTests {
|
||||
template <bool terminateOnFailure, typename ResulT>
|
||||
inline void validate(ResulT result, const char *message);
|
||||
extern decltype(&zerDriverGetDefaultContext) zerDriverGetDefaultContextFunc;
|
||||
} // namespace LevelZeroBlackBoxTests
|
||||
|
||||
#define SUCCESS_OR_TERMINATE(CALL) LevelZeroBlackBoxTests::validate<true>(CALL, #CALL)
|
||||
@@ -133,7 +135,7 @@ void initialize(ze_driver_handle_t &driver, ze_context_handle_t &context, ze_dev
|
||||
|
||||
bool checkImageSupport(ze_device_handle_t hDevice, bool test1D, bool test2D, bool test3D, bool testArray);
|
||||
|
||||
void teardown(ze_context_handle_t context, ze_command_queue_handle_t cmdQueue);
|
||||
void teardown(ze_command_queue_handle_t cmdQueue);
|
||||
|
||||
void printDeviceProperties(const ze_device_properties_t &props);
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2023-2024 Intel Corporation
|
||||
* Copyright (C) 2023-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -175,8 +175,6 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
executeKernelAndValidate(context, device, outputValidationSuccessful);
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
LevelZeroBlackBoxTests::printResult(aubMode, outputValidationSuccessful, blackBoxName);
|
||||
outputValidationSuccessful = aubMode ? true : outputValidationSuccessful;
|
||||
return outputValidationSuccessful ? 0 : 1;
|
||||
|
||||
@@ -1768,8 +1768,6 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
}
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
if (outputValidated) {
|
||||
std::cout << "\nZello bindless kernel PASSED " << std::endl;
|
||||
} else {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2022-2024 Intel Corporation
|
||||
* Copyright (C) 2022-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -538,8 +538,6 @@ int main(int argc, char *argv[]) {
|
||||
SUCCESS_OR_TERMINATE(zeEventPoolDestroy(eventPool2));
|
||||
}
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
int resultOnFailure = aubMode ? 0 : 1;
|
||||
return outputValidationSuccessful ? 0 : resultOnFailure;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2024 Intel Corporation
|
||||
* Copyright (C) 2020-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -523,8 +523,6 @@ int main(int argc, char *argv[]) {
|
||||
testMemoryFillWithWordSizedPattern(context, device, outputValidationSuccessful);
|
||||
}
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
LevelZeroBlackBoxTests::printResult(aubMode, outputValidationSuccessful, blackBoxName);
|
||||
|
||||
outputValidationSuccessful = aubMode ? true : outputValidationSuccessful;
|
||||
|
||||
@@ -100,8 +100,6 @@ int main(int argc, char *argv[]) {
|
||||
bool outputValidationSuccessful;
|
||||
testAppendMemoryCopy(context, device, outputValidationSuccessful);
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
LevelZeroBlackBoxTests::printResult(aubMode, outputValidationSuccessful, blackBoxName);
|
||||
outputValidationSuccessful = aubMode ? true : outputValidationSuccessful;
|
||||
return (outputValidationSuccessful ? 0 : 1);
|
||||
|
||||
@@ -380,8 +380,6 @@ int main(int argc, char *argv[]) {
|
||||
result &= result2DArray;
|
||||
LevelZeroBlackBoxTests::printResult(aubMode, result1DArray, blackBoxNameExt + " 2DARRAY");
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
result = aubMode ? true : result;
|
||||
return (result ? 0 : 1);
|
||||
}
|
||||
|
||||
@@ -161,7 +161,6 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeKernelDestroy(kernel));
|
||||
SUCCESS_OR_TERMINATE(zeModuleDestroy(module));
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
delete[] initDataSrc;
|
||||
delete[] initDataDst;
|
||||
|
||||
@@ -577,8 +577,6 @@ int main(int argc, char *argv[]) {
|
||||
testRegionCopyOf3DSharedMem(context, device, outputValidationSuccessful);
|
||||
}
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
LevelZeroBlackBoxTests::printResult(aubMode, outputValidationSuccessful, blackBoxName);
|
||||
outputValidationSuccessful = aubMode ? true : outputValidationSuccessful;
|
||||
return (outputValidationSuccessful ? 0 : 1);
|
||||
|
||||
@@ -88,7 +88,6 @@ int main(int argc, char *argv[]) {
|
||||
SUCCESS_OR_TERMINATE_BOOL(debugInfo[0] != 0xff);
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeModuleDestroy(module));
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
delete[] debugInfo;
|
||||
|
||||
|
||||
@@ -40,8 +40,6 @@ int main(int argc, char *argv[]) {
|
||||
std::cout << "DPAS supported" << std::endl;
|
||||
}
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
LevelZeroBlackBoxTests::printResult(aubMode, outputValidationSuccessful, blackBoxName);
|
||||
outputValidationSuccessful = aubMode ? true : outputValidationSuccessful;
|
||||
return (outputValidationSuccessful ? 0 : 1);
|
||||
|
||||
@@ -164,8 +164,6 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
outputValidationSuccessful = testLocalBarrier(context, device);
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
LevelZeroBlackBoxTests::printResult(aubMode, outputValidationSuccessful, blackBoxName);
|
||||
|
||||
int resultOnFailure = aubMode ? 0 : 1;
|
||||
|
||||
@@ -29,31 +29,9 @@ int main(int argc, char *argv[]) {
|
||||
numModules = 3;
|
||||
}
|
||||
// Setup
|
||||
SUCCESS_OR_TERMINATE(zeInit(ZE_INIT_FLAG_GPU_ONLY));
|
||||
|
||||
uint32_t driverCount = 0;
|
||||
SUCCESS_OR_TERMINATE(zeDriverGet(&driverCount, nullptr));
|
||||
if (driverCount == 0) {
|
||||
std::cerr << "No driver handle found!" << std::endl;
|
||||
std::terminate();
|
||||
}
|
||||
ze_driver_handle_t driverHandle;
|
||||
driverCount = 1;
|
||||
SUCCESS_OR_TERMINATE(zeDriverGet(&driverCount, &driverHandle));
|
||||
|
||||
uint32_t deviceCount = 0;
|
||||
SUCCESS_OR_TERMINATE(zeDeviceGet(driverHandle, &deviceCount, nullptr));
|
||||
if (deviceCount == 0) {
|
||||
std::cerr << "No device found!" << std::endl;
|
||||
std::terminate();
|
||||
}
|
||||
ze_device_handle_t device;
|
||||
deviceCount = 1;
|
||||
SUCCESS_OR_TERMINATE(zeDeviceGet(driverHandle, &deviceCount, &device));
|
||||
|
||||
ze_context_desc_t contextDesc = {ZE_STRUCTURE_TYPE_CONTEXT_DESC};
|
||||
ze_context_handle_t context;
|
||||
SUCCESS_OR_TERMINATE(zeContextCreate(driverHandle, &contextDesc, &context));
|
||||
ze_context_handle_t context = nullptr;
|
||||
auto devices = LevelZeroBlackBoxTests::zelloInitContextAndGetDevices(context);
|
||||
auto device = devices[0];
|
||||
|
||||
ze_device_mem_alloc_desc_t deviceDesc = {};
|
||||
deviceDesc.stype = ZE_STRUCTURE_TYPE_DEVICE_MEM_ALLOC_DESC;
|
||||
@@ -238,7 +216,6 @@ int main(int argc, char *argv[]) {
|
||||
if (circularDep) {
|
||||
SUCCESS_OR_TERMINATE(zeModuleDestroy(exportModule2));
|
||||
}
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
LevelZeroBlackBoxTests::printResult(aubMode, outputValidationSuccessful, blackBoxName);
|
||||
|
||||
|
||||
@@ -344,8 +344,6 @@ int main(int argc, char *argv[]) {
|
||||
LevelZeroBlackBoxTests::printResult(aubMode, outputValidationSuccessful, blackBoxName, currentTest);
|
||||
}
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
outputValidationSuccessful = aubMode ? true : outputValidationSuccessful;
|
||||
return outputValidationSuccessful ? 0 : 1;
|
||||
}
|
||||
|
||||
@@ -184,8 +184,6 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
outputValidationSuccessful = testFence(context, device);
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
LevelZeroBlackBoxTests::printResult(aubMode, outputValidationSuccessful, blackBoxName);
|
||||
outputValidationSuccessful = aubMode ? true : outputValidationSuccessful;
|
||||
return outputValidationSuccessful ? 0 : 1;
|
||||
|
||||
@@ -117,7 +117,6 @@ int main(int argc, char *argv[]) {
|
||||
testAppendMemoryCopyFill(context, device, outputValidationSuccessful, cmdQueue, maxElemenets, useInitFill);
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeCommandQueueDestroy(cmdQueue));
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
LevelZeroBlackBoxTests::printResult(aubMode, outputValidationSuccessful, blackBoxName);
|
||||
|
||||
|
||||
@@ -169,7 +169,6 @@ int main(int argc, char *argv[]) {
|
||||
SUCCESS_OR_TERMINATE(zeCommandQueueDestroy(cmdQueue));
|
||||
SUCCESS_OR_TERMINATE(zeKernelDestroy(kernel));
|
||||
SUCCESS_OR_TERMINATE(zeModuleDestroy(module));
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
LevelZeroBlackBoxTests::printResult(aubMode, outputValidationSuccessful, blackBoxName);
|
||||
int resultOnFailure = aubMode ? 0 : 1;
|
||||
|
||||
@@ -169,7 +169,6 @@ int main(int argc, char *argv[]) {
|
||||
currentTest = "Standard Memory Copy";
|
||||
testAppendMemoryCopy(driverHandle, context, device0, outputValidationSuccessful, cmdList);
|
||||
LevelZeroBlackBoxTests::printResult(aubMode, outputValidationSuccessful, blackBoxName, currentTest);
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
int resultOnFailure = aubMode ? 0 : 1;
|
||||
return outputValidationSuccessful ? 0 : resultOnFailure;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2022-2024 Intel Corporation
|
||||
* Copyright (C) 2022-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -86,8 +86,6 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
executeGpuKernelAndValidate(driverHandle, context, device, outputValidationSuccessful);
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
LevelZeroBlackBoxTests::printResult(aubMode, outputValidationSuccessful, blackBoxName);
|
||||
outputValidationSuccessful = aubMode ? true : outputValidationSuccessful;
|
||||
return (outputValidationSuccessful ? 0 : 1);
|
||||
|
||||
@@ -242,7 +242,7 @@ int main(int argc, char *argv[]) {
|
||||
testAppendImageFunction(context, device, cmdQueue, cmdQueueOrdinal, success3D, ZE_IMAGE_TYPE_3D);
|
||||
LevelZeroBlackBoxTests::printResult(aubMode, success1D, blackBoxName, caseName);
|
||||
}
|
||||
LevelZeroBlackBoxTests::teardown(context, cmdQueue);
|
||||
LevelZeroBlackBoxTests::teardown(cmdQueue);
|
||||
|
||||
bool outputValidationSuccessful = !((do1D && !success1D) || (do2D && !success2D) || (do3D && !success3D));
|
||||
outputValidationSuccessful = aubMode ? true : outputValidationSuccessful;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021-2024 Intel Corporation
|
||||
* Copyright (C) 2021-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -521,8 +521,6 @@ int main(int argc, char *argv[]) {
|
||||
testAppendImageViewRGBPCopy(context, device, outputValidationSuccessful);
|
||||
}
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
LevelZeroBlackBoxTests::printResult(aubMode, outputValidationSuccessful, blackBoxName);
|
||||
outputValidationSuccessful = aubMode ? true : outputValidationSuccessful;
|
||||
return (outputValidationSuccessful ? 0 : 1);
|
||||
|
||||
@@ -333,8 +333,6 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
}
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
LevelZeroBlackBoxTests::printResult(aubMode, outputValidationSuccessful, blackBoxName);
|
||||
outputValidationSuccessful = aubMode ? true : outputValidationSuccessful;
|
||||
return (outputValidationSuccessful ? 0 : 1);
|
||||
|
||||
@@ -220,8 +220,6 @@ int main(int argc, char *argv[]) {
|
||||
SUCCESS_OR_TERMINATE(zeCommandQueueDestroy(cmdQueue[i]));
|
||||
}
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
LevelZeroBlackBoxTests::printResult(aubMode, outputValidationSuccessful, blackBoxName);
|
||||
int resultOnFailure = aubMode ? 0 : 1;
|
||||
return outputValidationSuccessful ? 0 : resultOnFailure;
|
||||
|
||||
@@ -131,8 +131,6 @@ int main(int argc, char *argv[]) {
|
||||
delete[] devObjects[i].readBackData;
|
||||
}
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
LevelZeroBlackBoxTests::printResult(aubMode, outputValidationSuccessful, blackBoxName);
|
||||
int resultOnFailure = aubMode ? 0 : 1;
|
||||
return outputValidationSuccessful ? 0 : resultOnFailure;
|
||||
|
||||
@@ -103,13 +103,12 @@ void runPrintfKernel(const ze_module_handle_t &module, const ze_kernel_handle_t
|
||||
SUCCESS_OR_TERMINATE(commandHandler.synchronize());
|
||||
}
|
||||
|
||||
void cleanUp(ze_context_handle_t context, ze_module_handle_t module, ze_module_handle_t module2, ze_kernel_handle_t *kernels, uint32_t kernelsCount) {
|
||||
void cleanUp(ze_module_handle_t module, ze_module_handle_t module2, ze_kernel_handle_t *kernels, uint32_t kernelsCount) {
|
||||
for (uint32_t i = 0; i < kernelsCount; i++) {
|
||||
SUCCESS_OR_TERMINATE(zeKernelDestroy(kernels[i]));
|
||||
}
|
||||
SUCCESS_OR_TERMINATE(zeModuleDestroy(module));
|
||||
SUCCESS_OR_TERMINATE(zeModuleDestroy(module2));
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
@@ -225,14 +224,14 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
|
||||
if (validatePrintfOutput && !printfValidated) {
|
||||
cleanUp(context, module, module2, kernels, kernelsCount);
|
||||
cleanUp(module, module2, kernels, kernelsCount);
|
||||
std::cerr << "\nZello Printf FAILED " << std::endl;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cleanUp(context, module, module2, kernels, kernelsCount);
|
||||
cleanUp(module, module2, kernels, kernelsCount);
|
||||
std::cout << "\nZello Printf PASSED " << std::endl;
|
||||
|
||||
return 0;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2022-2024 Intel Corporation
|
||||
* Copyright (C) 2022-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -650,8 +650,6 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
}
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
outputValidationSuccessful = aubMode ? true : outputValidationSuccessful;
|
||||
return outputValidationSuccessful ? 0 : 1;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021-2024 Intel Corporation
|
||||
* Copyright (C) 2021-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -176,7 +176,6 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeKernelDestroy(kernel));
|
||||
SUCCESS_OR_TERMINATE(zeModuleDestroy(module));
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
outputValidationSuccessful = aubMode ? true : outputValidationSuccessful;
|
||||
return (outputValidationSuccessful ? 0 : 1);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2024 Intel Corporation
|
||||
* Copyright (C) 2020-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -840,7 +840,6 @@ int main(int argc, char *argv[]) {
|
||||
auto device = devices[0];
|
||||
|
||||
result = supportedTests[test](argc, argv, context, driverHandle, device);
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
LevelZeroBlackBoxTests::printResult(aubMode, result, blackBoxName, test);
|
||||
}
|
||||
result = aubMode ? true : result;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2024 Intel Corporation
|
||||
* Copyright (C) 2020-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -198,8 +198,6 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
executeKernelAndValidate(context, device, kernelExpDdiTable, outputValidationSuccessful);
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
LevelZeroBlackBoxTests::printResult(aubMode, outputValidationSuccessful, blackBoxName);
|
||||
outputValidationSuccessful = aubMode ? true : outputValidationSuccessful;
|
||||
return (outputValidationSuccessful ? 0 : 1);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2024 Intel Corporation
|
||||
* Copyright (C) 2020-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -147,8 +147,6 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
executeGpuKernelAndValidate(context, device, outputValidationSuccessful);
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
LevelZeroBlackBoxTests::printResult(aubMode, outputValidationSuccessful, blackBoxName);
|
||||
outputValidationSuccessful = aubMode ? true : outputValidationSuccessful;
|
||||
return outputValidationSuccessful ? 0 : 1;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2024 Intel Corporation
|
||||
* Copyright (C) 2020-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -130,8 +130,6 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
executeKernelAndValidate(context, device, outputValidationSuccessful);
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
LevelZeroBlackBoxTests::printResult(aubMode, outputValidationSuccessful, blackBoxName);
|
||||
outputValidationSuccessful = aubMode ? true : outputValidationSuccessful;
|
||||
return outputValidationSuccessful ? 0 : 1;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2021-2024 Intel Corporation
|
||||
* Copyright (C) 2021-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -178,7 +178,6 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
SUCCESS_OR_TERMINATE(zeKernelDestroy(kernel));
|
||||
SUCCESS_OR_TERMINATE(zeModuleDestroy(module));
|
||||
SUCCESS_OR_TERMINATE(zeContextDestroy(context));
|
||||
|
||||
LevelZeroBlackBoxTests::printResult(aubMode, outputValidationSuccessful, blackBoxName);
|
||||
outputValidationSuccessful = aubMode ? true : outputValidationSuccessful;
|
||||
|
||||
Reference in New Issue
Block a user