From 96fb554b3934d41d02092f82e3760757517cf7c3 Mon Sep 17 00:00:00 2001 From: Ross Brunton Date: Fri, 29 Mar 2024 13:34:05 +0000 Subject: [PATCH] [UR][Spec Constants] Improved handling of invalid/unsupported spec. constants Pre-commit MR for https://github.com/oneapi-src/unified-runtime/pull/1469 --- sycl/cmake/modules/FetchUnifiedRuntime.cmake | 27 ++++++++++++++------ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/sycl/cmake/modules/FetchUnifiedRuntime.cmake b/sycl/cmake/modules/FetchUnifiedRuntime.cmake index c3afe1fa0fb91..c677b0cdb9213 100644 --- a/sycl/cmake/modules/FetchUnifiedRuntime.cmake +++ b/sycl/cmake/modules/FetchUnifiedRuntime.cmake @@ -116,14 +116,25 @@ if(SYCL_UR_USE_FETCH_CONTENT) CACHE PATH "Path to external '${name}' adapter source dir" FORCE) endfunction() - set(UNIFIED_RUNTIME_REPO "https://github.com/oneapi-src/unified-runtime.git") - # commit 26f1dfc0b187763bc739537bdd0d8c76f32bd48e - # Merge: 89dc3a56 2dbe0800 - # Author: Omar Ahmed - # Date: Tue Aug 13 11:12:55 2024 +0100 - # Merge pull request #1960 from Bensuo/ewan/imm_command_list_fix - # Command-buffer immediate command-list CTS fix - set(UNIFIED_RUNTIME_TAG 26f1dfc0b187763bc739537bdd0d8c76f32bd48e) + set(UNIFIED_RUNTIME_REPO "https://github.com/RossBrunton/unified-runtime.git") + # commit put-git-commit-hash-here + # Author: Ross Brunton + # Date: Fri Mar 22 17:18:22 2024 +0000 + # + # [Spec Constants] Improved handling of invalid/unsupported spec. constants + # + # Two main changes to how `Kernel/ProgramSetSpecializationConstants` + # are handled: + # * They may now output either `INVALID_VALUE` or the new + # `INVALID_SPEC_ID` when the provided list is invalid. + # * The OpenCL and level 0 adapters now respond to + # `UR_DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS` with `false` + # rather than erroring out. This fixes some tests that were + # incorrectly not being skipped. + # * `urKernelSetSpecializationConstants` now "implemented" (as a + # function that returns `UNSUPPORTED_FEATURE` for a number of + # adapters. + set(UNIFIED_RUNTIME_TAG 429267f21dd6acb08ac77505c33a6235e68bac31) set(UMF_BUILD_EXAMPLES OFF CACHE INTERNAL "EXAMPLES") # Due to the use of dependentloadflag and no installer for UMF and hwloc we need