File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed
source/adapters/level_zero Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,9 @@ if (NOT DEFINED LEVEL_ZERO_LIBRARY OR NOT DEFINED LEVEL_ZERO_INCLUDE_DIR)
37
37
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-c++98-compat-extra-semi" )
38
38
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unknown-warning-option" )
39
39
endif ()
40
- if (UR_STATIC_ADAPTER_L0)
41
- set (BUILD_STATIC ON )
42
- endif ()
40
+ # if(UR_STATIC_ADAPTER_L0)
41
+ set (BUILD_STATIC ON )
42
+ # endif()
43
43
44
44
if (UR_LEVEL_ZERO_LOADER_REPO STREQUAL "" )
45
45
set (UR_LEVEL_ZERO_LOADER_REPO "https://github.com/nrspruit/level-zero.git" )
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ if(UR_BUILD_ADAPTER_L0)
52
52
)
53
53
install_ur_library(ur_adapter_level_zero)
54
54
55
+ target_compile_definitions (ur_adapter_level_zero PUBLIC UR_STATIC_LEVEL_ZERO)
55
56
if (UR_STATIC_ADAPTER_L0)
56
57
target_compile_definitions (ur_adapter_level_zero PUBLIC UR_STATIC_ADAPTER_LEVEL_ZERO)
57
58
Original file line number Diff line number Diff line change @@ -335,7 +335,7 @@ ur_adapter_handle_t_::ur_adapter_handle_t_()
335
335
// Dynamically load the new L0 apis separately.
336
336
// This must be done to avoid attempting to use symbols that do
337
337
// not exist in older loader runtimes.
338
- #ifndef UR_STATIC_ADAPTER_LEVEL_ZERO
338
+ #ifndef UR_STATIC_LEVEL_ZERO
339
339
#ifdef _WIN32
340
340
GlobalAdapter->processHandle = GetModuleHandle (NULL );
341
341
#else
@@ -414,7 +414,7 @@ ur_adapter_handle_t_::ur_adapter_handle_t_()
414
414
}
415
415
416
416
if (useInitDrivers) {
417
- #ifdef UR_STATIC_ADAPTER_LEVEL_ZERO
417
+ #ifdef UR_STATIC_LEVEL_ZERO
418
418
GlobalAdapter->initDriversFunctionPtr = zeInitDrivers;
419
419
#else
420
420
GlobalAdapter->initDriversFunctionPtr =
@@ -482,7 +482,7 @@ ur_adapter_handle_t_::ur_adapter_handle_t_()
482
482
ZesInitNeeded = true ;
483
483
}
484
484
if (ZesInitNeeded) {
485
- #ifdef UR_STATIC_ADAPTER_LEVEL_ZERO
485
+ #ifdef UR_STATIC_LEVEL_ZERO
486
486
GlobalAdapter->getDeviceByUUIdFunctionPtr = zesDriverGetDeviceByUuidExp;
487
487
GlobalAdapter->getSysManDriversFunctionPtr = zesDriverGet;
488
488
GlobalAdapter->sysManInitFunctionPtr = zesInit;
Original file line number Diff line number Diff line change @@ -345,7 +345,7 @@ ur_result_t ur_platform_handle_t_::initialize() {
345
345
// Check if mutable command list extension is supported and initialize
346
346
// function pointers.
347
347
if (MutableCommandListSpecExtensionSupported) {
348
- #ifdef UR_STATIC_ADAPTER_LEVEL_ZERO
348
+ #ifdef UR_STATIC_LEVEL_ZERO
349
349
ZeMutableCmdListExt.zexCommandListGetNextCommandIdExp =
350
350
zeCommandListGetNextCommandIdExp;
351
351
ZeMutableCmdListExt.zexCommandListUpdateMutableCommandsExp =
You can’t perform that action at this time.
0 commit comments