Skip to content

Commit 0713e88

Browse files
committed
Fix urLevelZeroKernelNativeHandleTest for older loaders
Signed-off-by: Neil R. Spruit <[email protected]>
1 parent 1968639 commit 0713e88

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

test/adapters/level_zero/urKernelCreateWithNativeHandle.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,7 @@ TEST_P(urLevelZeroKernelNativeHandleTest, OwnedHandleRelease) {
3535
ze_module_handle_t module;
3636

3737
// Initialize Level Zero driver is required if this test is linked statically with Level Zero loader, the driver will not be init otherwise.
38-
ze_init_driver_type_desc_t desc = {};
39-
desc.stype = ZE_STRUCTURE_TYPE_INIT_DRIVER_TYPE_DESC;
40-
desc.flags = ZE_INIT_DRIVER_TYPE_FLAG_GPU;
41-
desc.pNext = nullptr;
42-
uint32_t pCount = 0;
43-
zeInitDrivers(&pCount, nullptr, &desc);
38+
zeInit(ZE_INIT_FLAG_GPU_ONLY);
4439

4540
ASSERT_EQ(
4641
zeModuleCreate(native_context, native_device, &moduleDesc, &module, NULL),

0 commit comments

Comments
 (0)