Skip to content

Commit 2fac389

Browse files
committed
adding option for ITT enablement
1 parent 4f0624c commit 2fac389

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmake/FindDPCPP.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ if(NOT "${DPCPP_SYCL_TARGET}" STREQUAL "")
4545
list(APPEND DPCPP_FLAGS "-fsycl-targets=${DPCPP_SYCL_TARGET};")
4646
endif()
4747

48-
list(APPEND DPCPP_FLAGS "-fno-sycl-instrument-device-code")
48+
set(DPCPP_DISABLE_ITT_FOR_CUTLASS OFF CACHE BOOL "Disables linking of the Instrumentation and Tracing Technology (ITT) device libraries for VTune")
49+
if(DPCPP_DISABLE_ITT_FOR_CUTLASS)
50+
list(APPEND DPCPP_FLAGS "-fno-sycl-instrument-device-code")
51+
endif()
4952

5053
if(NOT "${DPCPP_USER_FLAGS}" STREQUAL "")
5154
list(APPEND DPCPP_FLAGS "${DPCPP_USER_FLAGS};")

0 commit comments

Comments
 (0)