From cfea2acf483890a915670fc905a8f87efc40ef7c Mon Sep 17 00:00:00 2001 From: Nicolas Miller Date: Tue, 28 May 2024 15:11:36 +0100 Subject: [PATCH] [SYCL][UR] Fix fetch adapter source cache variable This caused issues in local builds because if the specific adapter source is reset to the main UR checkout, the cache variable pointing to the adapter specific checkout would stick around, and the adapter would still be built from that older checkout which would eventually caused build failures. --- sycl/plugins/unified_runtime/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sycl/plugins/unified_runtime/CMakeLists.txt b/sycl/plugins/unified_runtime/CMakeLists.txt index a8fbd568bf5fd..918fe6b5c3f8c 100644 --- a/sycl/plugins/unified_runtime/CMakeLists.txt +++ b/sycl/plugins/unified_runtime/CMakeLists.txt @@ -75,6 +75,11 @@ if(SYCL_PI_UR_USE_FETCH_CONTENT) endif() if(repo STREQUAL UNIFIED_RUNTIME_REPO AND tag STREQUAL UNIFIED_RUNTIME_TAG) + # If the adapter sources are taken from the main checkout, reset the + # adapter specific source path. + string(TOUPPER ${name} NAME) + set(UR_ADAPTER_${NAME}_SOURCE_DIR "" + CACHE PATH "Path to external '${name}' adapter source dir" FORCE) return() endif() message(STATUS