Skip to content

Commit 9c504a5

Browse files
ykhatavagainull
andauthored
[SYCL] add dependent-load flag to exclude CWD from default search path (intel#12219)
Co-authored-by: Artur Gainullin <artur.gainullin@intel.com>
1 parent 9bfc3ae commit 9c504a5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sycl/plugins/level_zero/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ add_sycl_plugin(level_zero
9999
${XPTI_LIBS}
100100
)
101101

102+
if (WIN32)
103+
# 0x800: Search for the DLL only in the System32 folder
104+
target_link_options(pi_level_zero PUBLIC /DEPENDENTLOADFLAG:0x800)
105+
endif()
106+
102107
add_dependencies(pi_level_zero ze-api)
103108

104109
if (SYCL_ENABLE_XPTI_TRACING)

0 commit comments

Comments
 (0)