Skip to content

Commit 5a0b7a8

Browse files
authored
Not include MKL when headers only (#615)
## Description As the title ## Type - [x] Bug - [ ] Feature - [ ] Performance - [ ] Refactor ## Testing - [ ] Tests pass - [ ] Xe12 - [ ] Xe20 ## Performance | Metric | Before | After | |--------|--------|-------| | | | | ## References Fixes # ## Checklist - [ ] Copyright - [ ] Co-pilot Review - [ ] Deprecated APIs not used
1 parent 6df6dd1 commit 5a0b7a8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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)
162161
endif()
163162
find_package(Doxygen QUIET)
164163

@@ -201,7 +200,7 @@ set(CUTLASS_ENABLE_HEADERS_ONLY OFF CACHE BOOL "Enable only the header library")
201200

202201
if(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)
207206
else()
@@ -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)
216218
endif()
217219

218220
set(CUTLASS_TEST_UNIT_ENABLE_WARNINGS OFF CACHE BOOL "Enable warnings on waived unit tests.")

0 commit comments

Comments
 (0)