-
Notifications
You must be signed in to change notification settings - Fork 734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[L0][UR] Only Override max allocation limits given env #12375
Conversation
e4b57a5
to
927df58
Compare
927df58
to
7d91ba7
Compare
Okay, I've managed to reproduce this Windows compile error locally. I'll work on a fix to UR and prioritise it. |
An include changed which also includes |
Define `NOMINMAX` before including Windows.h to fix the building in intel/llvm#12375.
oneapi-src/unified-runtime#1258 should do the trick. |
Actually this isn't required, we already define diff --git a/sycl/plugins/level_zero/CMakeLists.txt b/sycl/plugins/level_zero/CMakeLists.txt
index 5c24988813c1..19a75b4736bd 100644
--- a/sycl/plugins/level_zero/CMakeLists.txt
+++ b/sycl/plugins/level_zero/CMakeLists.txt
@@ -102,6 +102,10 @@ add_sycl_plugin(level_zero
if (WIN32)
# 0x800: Search for the DLL only in the System32 folder
target_link_options(pi_level_zero PUBLIC /DEPENDENTLOADFLAG:0x800)
+ target_compile_definitions(pi_level_zero PRIVATE
+ WIN32_LEAN_AND_MEAN
+ NOMINMAX
+ )
endif()
add_dependencies(pi_level_zero ze-api) |
Hello @kbenzie , it looks like this flag is also needed for the opencl plugin. Should this be a larger patch for all plugins? |
4138598
to
64b47eb
Compare
after updating both plugins opencl and level zero there is a new error because this is set elsewhere: |
Hmm, perhaps we need to move the |
1f8c210
to
a0be361
Compare
Since some functions moved out of the diff --git a/sycl/plugins/unified_runtime/CMakeLists.txt b/sycl/plugins/unified_runtime/CMakeLists.txt
index 8d7f2f32b415..b2bb94714c0b 100644
--- a/sycl/plugins/unified_runtime/CMakeLists.txt
+++ b/sycl/plugins/unified_runtime/CMakeLists.txt
@@ -150,6 +150,7 @@ set(UNIFIED_RUNTIME_PLUGIN_ARGS
Threads::Threads
UnifiedRuntimeLoader
UnifiedRuntime-Headers
+ UnifiedRuntimeCommon
INCLUDE_DIRS
"${UNIFIED_RUNTIME_SRC_INCLUDE_DIR}"
"${UNIFIED_RUNTIME_COMMON_INCLUDE_DIR}" |
a0be361
to
a2a27ff
Compare
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
a2a27ff
to
76c7384
Compare
My local build did not have |
This reverts commit 0483187.
I've reverted the CMake changes since they were no logner required after moving the Windows.h include, this should also fix the macro redefinition error. |
UR testing. Depends on #12375 --------- Co-authored-by: Kenneth Benzie (Benie) <k.benzie83@gmail.com>
Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com> Co-authored-by: Kenneth Benzie (Benie) <k.benzie@codeplay.com>
UR testing. Depends on #12375 --------- Co-authored-by: Kenneth Benzie (Benie) <k.benzie83@gmail.com>
https://github.com/intel/llvm/actions/runs/7588321461/job/20670983110 |
pre merge CI PR for oneapi-src/unified-runtime#1245