Skip to content

Commit df4a497

Browse files
[CMake] Update comments for L0 loader fetching
and use proper CACHE variable type - PATH to dir with headers.
1 parent 74b6724 commit df4a497

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

examples/gpu_shared_memory/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ set(LEVEL_ZERO_LOADER_TAG v1.16.1)
2828

2929
message(
3030
STATUS
31-
"Installing level-zero ${LEVEL_ZERO_LOADER_TAG} from ${LEVEL_ZERO_LOADER_REPO} ..."
31+
"Fetching L0 loader (${LEVEL_ZERO_LOADER_TAG}) from ${LEVEL_ZERO_LOADER_REPO} ..."
3232
)
3333

3434
FetchContent_Declare(

examples/ipc_level_zero/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ set(LEVEL_ZERO_LOADER_TAG v1.16.1)
2828

2929
message(
3030
STATUS
31-
"Installing level-zero ${LEVEL_ZERO_LOADER_TAG} from ${LEVEL_ZERO_LOADER_REPO} ..."
31+
"Fetching L0 loader (${LEVEL_ZERO_LOADER_TAG}) from ${LEVEL_ZERO_LOADER_REPO} ..."
3232
)
3333

3434
FetchContent_Declare(

src/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ include(${UMF_CMAKE_SOURCE_DIR}/cmake/helpers.cmake)
66

77
set(UMF_LEVEL_ZERO_INCLUDE_DIR
88
""
9-
CACHE FILEPATH "Directory containing the Level Zero Headers")
9+
CACHE PATH "Directory containing the Level Zero Headers")
1010

1111
# Compile definitions for UMF library.
1212
#
1313
# TODO: Cleanup the compile definitions across all the CMake files
1414
set(UMF_COMMON_COMPILE_DEFINITIONS UMF_VERSION=${UMF_VERSION})
1515

16+
# Only fetch L0 loader if needed (L0 provider and GPU tests are ON), and not
17+
# already provided by the user (via setting UMF_LEVEL_ZERO_INCLUDE_DIR).
1618
if(UMF_BUILD_LEVEL_ZERO_PROVIDER AND (UMF_BUILD_GPU_TESTS
1719
OR (NOT UMF_LEVEL_ZERO_INCLUDE_DIR)))
1820
include(FetchContent)
@@ -22,7 +24,7 @@ if(UMF_BUILD_LEVEL_ZERO_PROVIDER AND (UMF_BUILD_GPU_TESTS
2224

2325
message(
2426
STATUS
25-
"Installing level-zero ${LEVEL_ZERO_LOADER_TAG} from ${LEVEL_ZERO_LOADER_REPO} ..."
27+
"Fetching L0 loader (${LEVEL_ZERO_LOADER_TAG}) from ${LEVEL_ZERO_LOADER_REPO} ..."
2628
)
2729

2830
FetchContent_Declare(

0 commit comments

Comments
 (0)