Skip to content

Commit

Permalink
Apply suggestions of @brian-kelley
Browse files Browse the repository at this point in the history
  • Loading branch information
rbberger committed Jul 31, 2024
1 parent 333d071 commit 6fc03a8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ ELSE()
FIND_PACKAGE(Kokkos REQUIRED)
IF(Kokkos_COMPILE_LANGUAGE)
ENABLE_LANGUAGE(${Kokkos_COMPILE_LANGUAGE})
IF(Kokkos_COMPILE_LANGUAGE STREQUAL CUDA)
SET(CMAKE_CUDA_ARCHITECTURES ${Kokkos_CUDA_ARCHITECTURES})
ENDIF()
IF(Kokkos_COMPILE_LANGUAGE STREQUAL HIP)
SET(CMAKE_HIP_ARCHITECTURES ${Kokkos_HIP_ARCHITECTURES})
ENDIF()
ENDIF()
IF(${Kokkos_VERSION} VERSION_GREATER_EQUAL "4.2.00")
MESSAGE(STATUS "Found Kokkos version ${Kokkos_VERSION} at ${Kokkos_DIR}")
Expand Down
6 changes: 6 additions & 0 deletions cmake/kokkoskernels_tribits.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ IF (IS_ENABLED)
SOURCES ${PARSE_SOURCES}
TESTONLYLIBS ${PARSE_TESTONLYLIBS})
ELSE()
# Set the correct CMake language on all source files for this exe
IF(Kokkos_COMPILE_LANGUAGE)
FOREACH(source ${PARSE_SOURCES})
SET_SOURCE_FILES_PROPERTIES(${source} PROPERTIES LANGUAGE ${Kokkos_COMPILE_LANGUAGE})
ENDFOREACH()
ENDIF()
ADD_EXECUTABLE(${EXE_NAME} ${PARSE_SOURCES})
#AJP, BMK altered:
IF(KOKKOSKERNELS_ENABLE_TESTS_AND_PERFSUITE)
Expand Down

0 comments on commit 6fc03a8

Please sign in to comment.