Skip to content

Commit 693e3d5

Browse files
committed
Bump UR and adjust use of urKernelSuggestMaxCooperativeGroupCountExp
1 parent 4435532 commit 693e3d5

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

sycl/cmake/modules/FetchUnifiedRuntime.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ if(SYCL_UR_USE_FETCH_CONTENT)
116116
CACHE PATH "Path to external '${name}' adapter source dir" FORCE)
117117
endfunction()
118118

119-
set(UNIFIED_RUNTIME_REPO "https://github.com/oneapi-src/unified-runtime.git")
119+
set(UNIFIED_RUNTIME_REPO "https://github.com/igchor/unified-runtime.git")
120120
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules/UnifiedRuntimeTag.cmake)
121121

122122
set(UMF_BUILD_EXAMPLES OFF CACHE INTERNAL "EXAMPLES")
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
1-
# commit 39df0317814c164f5242eda8d6f08550f6268492
2-
# Merge: 68d93efd be27d8f0
3-
# Author: Kenneth Benzie (Benie) <[email protected]>
4-
# Date: Mon Dec 16 13:53:13 2024 +0000
5-
# Merge pull request #2467 from nrspruit/fix_external_import_function_call
6-
# [L0] Fix external semaphore import function calls to match the header
7-
set(UNIFIED_RUNTIME_TAG 39df0317814c164f5242eda8d6f08550f6268492)
1+
set(UNIFIED_RUNTIME_TAG 4a89e1c69a65acd4f2792743584dfc704086da5e)

sycl/source/detail/kernel_impl.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ kernel_impl::queryMaxNumWorkGroups(queue Queue,
320320
const auto &Adapter = getAdapter();
321321
const auto &Handle = getHandleRef();
322322
auto Device = Queue.get_device();
323+
auto DeviceHandleRef = sycl::detail::getSyclObjImpl(Device)->getHandleRef();
323324

324325
size_t WG[Dimensions];
325326
WG[0] = WorkGroupSize[0];
@@ -331,7 +332,8 @@ kernel_impl::queryMaxNumWorkGroups(queue Queue,
331332
uint32_t GroupCount{0};
332333
if (auto Result = Adapter->call_nocheck<
333334
UrApiKind::urKernelSuggestMaxCooperativeGroupCountExp>(
334-
Handle, Dimensions, WG, DynamicLocalMemorySize, &GroupCount);
335+
Handle, DeviceHandleRef, Dimensions, WG, DynamicLocalMemorySize,
336+
&GroupCount);
335337
Result != UR_RESULT_ERROR_UNSUPPORTED_FEATURE &&
336338
Result != UR_RESULT_ERROR_INVALID_WORK_GROUP_SIZE) {
337339
// The feature is supported and the group size is valid. Check for other

0 commit comments

Comments
 (0)