@@ -44,6 +44,8 @@ option(KokkosTools_ENABLE_PAPI "Enable PAPI support" OFF)
4444option (KokkosTools_ENABLE_MPI "Enable MPI support" OFF )
4545option (KokkosTools_ENABLE_CALIPER "Enable building Caliper library" OFF )
4646option (KokkosTools_ENABLE_APEX "Enable building Apex library" OFF )
47+ option (KokkosTools_ENABLE_VARIORUM "Enable Variorum support" OFF )
48+ option (KokkosTools_ENABLE_SYSTEMTAP "Enable SystemTap support" OFF )
4749option (KokkosTools_ENABLE_EXAMPLES "Build examples" OFF )
4850option (KokkosTools_ENABLE_TESTS "Build tests" OFF )
4951
8587 set (KOKKOSTOOLS_HAS_MPI 0)
8688endif ()
8789
88- include (cmake/configure_variorum.cmake)
90+ if (KokkosTools_ENABLE_VARIORUM)
91+ include (cmake/configure_variorum.cmake)
92+ endif ()
8993
9094set (KOKKOSTOOLS_HAS_CALIPER ${KokkosTools_ENABLE_CALIPER} )
9195set (KOKKOSTOOLS_HAS_NVTX ${Kokkos_ENABLE_CUDA} ) # we assume that enabling CUDA for Kokkos program means nvtx should be available
@@ -157,14 +161,13 @@ if(KokkosTools_ENABLE_PAPI)
157161 add_subdirectory (profiling/papi-connector)
158162endif ()
159163
160- if (NOT WIN32 AND NOT APPLE )
161- find_program (KOKKOSTOOLS_DTRACE_EXECUTABLE dtrace )
162- if (KOKKOSTOOLS_DTRACE_EXECUTABLE)
164+ if (KokkosTools_ENABLE_SYSTEMTAP )
165+ if ( NOT WIN32 AND NOT APPLE )
166+ find_program (KOKKOSTOOLS_DTRACE_EXECUTABLE dtrace REQUIRED )
163167 add_subdirectory (profiling/systemtap-connector)
164168 set (KOKKOSTOOLS_HAS_SYSTEMTAP ON )
165169 else ()
166- message (STATUS "Skipping systemtap-connector (dtrace executable wasn't found)" )
167- set (KOKKOSTOOLS_HAS_SYSTEMTAP OFF )
170+ message (FATAL_ERROR "KokkosTools_ENABLE_SYSTEMTAP=ON is not supported on Windows and macOS platforms" )
168171 endif ()
169172else ()
170173 set (KOKKOSTOOLS_HAS_SYSTEMTAP OFF )
0 commit comments