Skip to content

Commit ada5701

Browse files
authored
[SYCL][UR] Fix fetch adapter source cache variable (#13934)
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.
1 parent fd0491c commit ada5701

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sycl/plugins/unified_runtime/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ if(SYCL_PI_UR_USE_FETCH_CONTENT)
7575
endif()
7676
if(repo STREQUAL UNIFIED_RUNTIME_REPO AND
7777
tag STREQUAL UNIFIED_RUNTIME_TAG)
78+
# If the adapter sources are taken from the main checkout, reset the
79+
# adapter specific source path.
80+
string(TOUPPER ${name} NAME)
81+
set(UR_ADAPTER_${NAME}_SOURCE_DIR ""
82+
CACHE PATH "Path to external '${name}' adapter source dir" FORCE)
7883
return()
7984
endif()
8085
message(STATUS

0 commit comments

Comments
 (0)