Skip to content

Commit c3e482b

Browse files
[cmake] add kokkos kernels support for blas backend
1 parent 910ed21 commit c3e482b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ project(
4848
set(CPACK_PACKAGE_CHECKSUM "SHA512")
4949
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README.md")
5050
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE.txt")
51+
set(CPACK_SOURCE_GENERATOR "TBZ2")
5152

5253
include(CMakePackageConfigHelpers)
5354
include(CPack)
@@ -95,6 +96,15 @@ FetchContent_Declare(
9596
FIND_PACKAGE_ARGS NAMES Kokkos)
9697
FetchContent_MakeAvailable(kokkos)
9798

99+
FetchContent_Declare(
100+
kokkos_kernels
101+
GIT_REPOSITORY "https://github.com/kokkos/kokkos-kernels"
102+
FIND_PACKAGE_ARGS NAMES KokkosKernels)
103+
FetchContent_MakeAvailable(kokkos_kernels)
104+
if(WIN32)
105+
target_compile_options(kokkoskernels PRIVATE "/bigobj")
106+
endif()
107+
98108
add_subdirectory(benchmark)
99109
add_subdirectory(cmake)
100110
add_subdirectory(include)

0 commit comments

Comments
 (0)