Skip to content

Commit

Permalink
[SYCL] add dependent-load flag to exclude CWD from default search path (
Browse files Browse the repository at this point in the history
#12219)

Co-authored-by: Artur Gainullin <artur.gainullin@intel.com>
  • Loading branch information
ykhatav and againull authored Dec 29, 2023
1 parent 9bfc3ae commit 9c504a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sycl/plugins/level_zero/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ add_sycl_plugin(level_zero
${XPTI_LIBS}
)

if (WIN32)
# 0x800: Search for the DLL only in the System32 folder
target_link_options(pi_level_zero PUBLIC /DEPENDENTLOADFLAG:0x800)
endif()

add_dependencies(pi_level_zero ze-api)

if (SYCL_ENABLE_XPTI_TRACING)
Expand Down

0 comments on commit 9c504a5

Please sign in to comment.