File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,6 @@ if (CUTLASS_ENABLE_SYCL)
158158 add_compile_definitions (CUTLASS_SYCL_BUILTIN_ENABLE)
159159 endif ()
160160
161- include (${CMAKE_CURRENT_SOURCE_DIR} /cmake/onemkl.cmake)
162161endif ()
163162find_package (Doxygen QUIET )
164163
@@ -201,7 +200,7 @@ set(CUTLASS_ENABLE_HEADERS_ONLY OFF CACHE BOOL "Enable only the header library")
201200
202201if (CUTLASS_ENABLE_HEADERS_ONLY)
203202 set (CUTLASS_ENABLE_EXAMPLES_INIT OFF )
204- set (CUTLASS_ENABLE_TOOLS_INIT ON )
203+ set (CUTLASS_ENABLE_TOOLS_INIT OFF )
205204 set (CUTLASS_ENABLE_LIBRARY_INIT OFF )
206205 set (CUTLASS_ENABLE_TESTS_INIT OFF )
207206else ()
@@ -213,6 +212,9 @@ else()
213212 else ()
214213 set (CUTLASS_ENABLE_TESTS_INIT OFF )
215214 endif ()
215+
216+ # Not include MKL when headers only
217+ include (${CMAKE_CURRENT_SOURCE_DIR} /cmake/onemkl.cmake)
216218endif ()
217219
218220set (CUTLASS_TEST_UNIT_ENABLE_WARNINGS OFF CACHE BOOL "Enable warnings on waived unit tests." )
You can’t perform that action at this time.
0 commit comments