Skip to content

Commit d7fa0f8

Browse files
npmillerkbenzie
authored andcommitted
Fix adapter cupti linking (#17224)
`cupti` shouldn't be linked against the adapter, when it is the adapter is unusable if the library is not available, instead of just the tracing being affected. The code is already setup to dynamically load `cupti` so this can just be removed.
1 parent d6908a8 commit d7fa0f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/adapters/cuda/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ if (UR_ENABLE_TRACING)
110110
endif()
111111

112112
if (CUDA_cupti_LIBRARY)
113+
# cupti is dynamically loaded so the adapter still works if it's not available
113114
target_compile_definitions("ur_adapter_cuda" PRIVATE CUPTI_LIB_PATH="${CUDA_cupti_LIBRARY}")
114-
list(APPEND EXTRA_LIBS ${CUDA_cupti_LIBRARY})
115115
endif()
116116

117117
target_link_libraries(${TARGET_NAME} PRIVATE

0 commit comments

Comments
 (0)