Skip to content

Commit

Permalink
WIP: Kokkos: Remove TriBITS subpackages (trilinos#11545)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlettroscoe committed Apr 14, 2023
1 parent f1408d2 commit 8f93097
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 62 deletions.
2 changes: 1 addition & 1 deletion packages/kokkos/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if( "${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}" )
endif()

if (COMMAND TRIBITS_PACKAGE_DECL)
TRIBITS_PACKAGE_DECL(Kokkos)
TRIBITS_PACKAGE(Kokkos)
endif()

# We want to determine if options are given with the wrong case
Expand Down
8 changes: 0 additions & 8 deletions packages/kokkos/algorithms/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@


KOKKOS_SUBPACKAGE(Algorithms)

IF (NOT Kokkos_INSTALL_TESTING)
ADD_SUBDIRECTORY(src)
ENDIF()
# FIXME_OPENACC: temporarily disabled due to unimplemented features
IF(NOT ((KOKKOS_ENABLE_OPENMPTARGET OR KOKKOS_ENABLE_OPENACC) AND KOKKOS_CXX_COMPILER_ID STREQUAL NVHPC))
KOKKOS_ADD_TEST_DIRECTORIES(unit_tests)
ENDIF()

KOKKOS_SUBPACKAGE_POSTPROCESS()


5 changes: 0 additions & 5 deletions packages/kokkos/algorithms/cmake/Dependencies.cmake

This file was deleted.

12 changes: 4 additions & 8 deletions packages/kokkos/cmake/Dependencies.cmake
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
TRIBITS_PACKAGE_DEFINE_DEPENDENCIES(
SUBPACKAGES_DIRS_CLASSIFICATIONS_OPTREQS
#SubPackageName Directory Class Req/Opt
#
# New Kokkos subpackages:
Core core PS REQUIRED
Containers containers PS OPTIONAL
Algorithms algorithms PS OPTIONAL
Simd simd PT OPTIONAL
LIB_OPTIONAL_TPLS Pthread CUDA HWLOC DLlib
TEST_OPTIONAL_TPLS CUSPARSE
)

TRIBITS_TPL_TENTATIVELY_ENABLE(DLlib)
12 changes: 5 additions & 7 deletions packages/kokkos/cmake/kokkos_tribits.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,11 @@ ENDMACRO()


MACRO(KOKKOS_PROCESS_SUBPACKAGES)
if (KOKKOS_HAS_TRILINOS)
TRIBITS_PROCESS_SUBPACKAGES()
else()
ADD_SUBDIRECTORY(core)
ADD_SUBDIRECTORY(containers)
ADD_SUBDIRECTORY(algorithms)
ADD_SUBDIRECTORY(simd)
ADD_SUBDIRECTORY(core)
ADD_SUBDIRECTORY(containers)
ADD_SUBDIRECTORY(algorithms)
ADD_SUBDIRECTORY(simd)
if (NOT KOKKOS_HAS_TRILINOS)
ADD_SUBDIRECTORY(example)
endif()
ENDMACRO()
Expand Down
6 changes: 0 additions & 6 deletions packages/kokkos/containers/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@


KOKKOS_SUBPACKAGE(Containers)

IF (NOT Kokkos_INSTALL_TESTING)
ADD_SUBDIRECTORY(src)
ENDIF()
Expand All @@ -11,5 +7,3 @@ IF(NOT KOKKOS_ENABLE_OPENACC)
KOKKOS_ADD_TEST_DIRECTORIES(unit_tests)
KOKKOS_ADD_TEST_DIRECTORIES(performance_tests)
ENDIF()

KOKKOS_SUBPACKAGE_POSTPROCESS()
5 changes: 0 additions & 5 deletions packages/kokkos/containers/cmake/Dependencies.cmake

This file was deleted.

6 changes: 0 additions & 6 deletions packages/kokkos/core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@


KOKKOS_SUBPACKAGE(Core)

IF (NOT Kokkos_INSTALL_TESTING)
ADD_SUBDIRECTORY(src)
ENDIF()
Expand All @@ -11,5 +7,3 @@ IF (NOT KOKKOS_HAS_TRILINOS)
# We are using the githash etc in here, which does not work correct in Trilinos
KOKKOS_ADD_TEST_DIRECTORIES(perf_test)
ENDIF()

KOKKOS_SUBPACKAGE_POSTPROCESS()
6 changes: 0 additions & 6 deletions packages/kokkos/core/cmake/Dependencies.cmake

This file was deleted.

5 changes: 0 additions & 5 deletions packages/kokkos/simd/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@

KOKKOS_SUBPACKAGE(Simd)

IF (NOT Kokkos_INSTALL_TESTING)
ADD_SUBDIRECTORY(src)
ENDIF()

KOKKOS_ADD_TEST_DIRECTORIES(unit_tests)

KOKKOS_SUBPACKAGE_POSTPROCESS()
5 changes: 0 additions & 5 deletions packages/kokkos/simd/cmake/Dependencies.cmake

This file was deleted.

0 comments on commit 8f93097

Please sign in to comment.