Skip to content

Commit c571ec4

Browse files
committed
[CUDA] Don't import XPTI symbols in the plugin library
The CUDA plugin builds an XPTI file directly. By default the symbol visibility in that XPTI file is presumed to import symbols, but there are no XPTI symbols being exported, since XPTI is not built as a separate library. This causes a compilation failure on Windows. The fix is to define `XPTI_STATIC_LIBRARY`, which changes the visibility of symbols - on Windows this means no longer using `dllimport` (and neither using `dllexport`).
1 parent 9b93cb1 commit c571ec4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/adapters/cuda/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ if (UR_ENABLE_TRACING)
9898
endif()
9999
target_compile_definitions(${TARGET_NAME} PRIVATE
100100
XPTI_ENABLE_INSTRUMENTATION
101+
XPTI_STATIC_LIBRARY
101102
)
102103
target_include_directories(${TARGET_NAME} PUBLIC
103104
${XPTI_INCLUDES}

0 commit comments

Comments
 (0)