Skip to content

Commit 646a508

Browse files
[UR] Update dependentloadflag for L0 adapters dlls (#17078)
In ['add_ur_library'](https://github.com/intel/llvm/blob/sycl/unified-runtime/cmake/helpers.cmake#L193) we're already setting up proper value (0x2000) for that flag, for all UR libs. // Moving PR from UR: oneapi-src/unified-runtime#2703
1 parent 281d103 commit 646a508

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

unified-runtime/source/adapters/level_zero/CMakeLists.txt

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (C) 2022-2024 Intel Corporation
1+
# Copyright (C) 2022-2025 Intel Corporation
22
# Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions.
33
# See LICENSE.TXT
44
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
@@ -100,11 +100,6 @@ if(UR_BUILD_ADAPTER_L0)
100100
SOVERSION "${PROJECT_VERSION_MAJOR}"
101101
)
102102

103-
if (WIN32)
104-
# 0x800: Search for the DLL only in the System32 folder
105-
target_link_options(ur_adapter_level_zero PRIVATE LINKER:/DEPENDENTLOADFLAG:0x800)
106-
endif()
107-
108103
target_link_libraries(ur_adapter_level_zero PRIVATE
109104
${PROJECT_NAME}::headers
110105
${PROJECT_NAME}::common
@@ -206,11 +201,6 @@ if(UR_BUILD_ADAPTER_L0_V2)
206201
SOVERSION "${PROJECT_VERSION_MAJOR}"
207202
)
208203

209-
if (WIN32)
210-
# 0x800: Search for the DLL only in the System32 folder
211-
target_link_options(ur_adapter_level_zero_v2 PUBLIC LINKER:/DEPENDENTLOADFLAG:0x800)
212-
endif()
213-
214204
target_link_libraries(ur_adapter_level_zero_v2 PRIVATE
215205
${PROJECT_NAME}::headers
216206
${PROJECT_NAME}::common

0 commit comments

Comments
 (0)