Skip to content

Commit

Permalink
[cmake] add kokkos kernels support for blas backend
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoisCarouge committed Jan 22, 2023
1 parent 910ed21 commit c3e482b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ project(
set(CPACK_PACKAGE_CHECKSUM "SHA512")
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README.md")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/LICENSE.txt")
set(CPACK_SOURCE_GENERATOR "TBZ2")

include(CMakePackageConfigHelpers)
include(CPack)
Expand Down Expand Up @@ -95,6 +96,15 @@ FetchContent_Declare(
FIND_PACKAGE_ARGS NAMES Kokkos)
FetchContent_MakeAvailable(kokkos)

FetchContent_Declare(
kokkos_kernels
GIT_REPOSITORY "https://github.com/kokkos/kokkos-kernels"
FIND_PACKAGE_ARGS NAMES KokkosKernels)
FetchContent_MakeAvailable(kokkos_kernels)
if(WIN32)
target_compile_options(kokkoskernels PRIVATE "/bigobj")
endif()

add_subdirectory(benchmark)
add_subdirectory(cmake)
add_subdirectory(include)
Expand Down

0 comments on commit c3e482b

Please sign in to comment.