Skip to content

Commit 22e3e95

Browse files
authored
[SYCL][CUDA] Include CUPTI as system headers (#18051)
This suppresses warnings coming from CUPTI headers, like `-Wnested-anon-types`.
1 parent 0279879 commit 22e3e95

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

sycl/tools/sycl-trace/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ if(SYCL_BUILD_BACKEND_CUDA)
107107
endif()
108108

109109
target_include_directories(cuda_trace_collector
110-
PRIVATE
110+
SYSTEM PRIVATE
111111
${CUDAToolkit_CUPTI_INCLUDE_DIR}
112112
)
113113

unified-runtime/source/adapters/cuda/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ if (UR_ENABLE_TRACING AND UNIX)
102102

103103
target_include_directories(${TARGET_NAME} PRIVATE
104104
${XPTI_INCLUDES}
105+
)
106+
target_include_directories(${TARGET_NAME} SYSTEM PRIVATE
105107
${CUDAToolkit_CUPTI_INCLUDE_DIR}
106108
)
107109
target_sources(${TARGET_NAME} PRIVATE ${XPTI_PROXY_SRC})

0 commit comments

Comments
 (0)