Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 60a4cbd

Browse files
authored
Merge pull request #605 from masterleinad/fix_trilinos_external_kokkos
2 parents d44f722 + d3d9519 commit 60a4cbd

File tree

3 files changed

+9
-16
lines changed

3 files changed

+9
-16
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[submodule "data"]
22
path = data
3-
url = ../DTKData.git
3+
url = https://github.com/ORNL-CEES/DTKData
44
[submodule "arborx"]
55
path = packages/Search
66
url = ../../arborx/arborx.git

CMakeLists.txt

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ IF (NOT TRIBITS_PROCESSING_PACKAGE)
3737
## FLAGS
3838
##---------------------------------------------------------------------------##
3939

40-
SET(CMAKE_CXX_STANDARD 14)
40+
SET(CMAKE_CXX_STANDARD 17)
4141

4242
##---------------------------------------------------------------------------##
4343
## TriBITS package processing
@@ -60,30 +60,23 @@ ELSE()
6060
IF(${PACKAGE_NAME}_TRILINOS_TPL)
6161
LIST(APPEND CMAKE_PREFIX_PATH ${TPL_Trilinos_LIBRARY_DIRS}/.. /usr/local/cuda/lib64)
6262

63-
# Find the available devices in Kokkos.
64-
FIND_PATH(_Kokkos_SETTINGS
65-
NAMES KokkosConfig.cmake
66-
PATHS ${KOKKOS_PREFIX}
67-
${TPL_Trilinos_LIBRARY_DIRS}/cmake/Kokkos
68-
${Trilinos_DIR}/../Kokkos)
69-
INCLUDE(${_Kokkos_SETTINGS}/KokkosConfig.cmake)
70-
ASSERT_DEFINED(Kokkos_DEVICES)
63+
find_package(Kokkos REQUIRED QUIET HINTS ${Trilinos_DIR}/../Kokkos)
7164

7265
# Hijack Tpetra ETI
7366
SET(${PACKAGE_NAME}_ETI_SCALARS "double")
7467
SET(${PACKAGE_NAME}_ETI_LORDS "int")
7568
SET(${PACKAGE_NAME}_ETI_GORDS "long")
7669
SET(${PACKAGE_NAME}_ETI_NODES "") # start with the empty list
77-
IF ("SERIAL" IN_LIST Kokkos_DEVICES)
70+
IF (Kokkos_ENABLE_SERIAL)
7871
LIST(APPEND ${PACKAGE_NAME}_ETI_NODES "Kokkos::Compat::KokkosSerialWrapperNode")
7972
ENDIF()
80-
IF ("OPENMP" IN_LIST Kokkos_DEVICES)
73+
IF (Kokkos_ENABLE_OPENMP)
8174
LIST(APPEND ${PACKAGE_NAME}_ETI_NODES "Kokkos::Compat::KokkosOpenMPWrapperNode")
8275
ENDIF()
83-
IF ("CUDA" IN_LIST Kokkos_DEVICES)
76+
IF (Kokkos_ENABLE_CUDA)
8477
LIST(APPEND ${PACKAGE_NAME}_ETI_NODES "Kokkos::Compat::KokkosCudaWrapperNode")
8578
ENDIF()
86-
IF("THREADS" IN_LIST Kokkos_DEVICES)
79+
IF(Kokkos_ENABLE_THREADS)
8780
LIST(APPEND ${PACKAGE_NAME}_ETI_NODES "Kokkos::Compat::KokkosThreadsWrapperNode")
8881
ENDIF()
8982
ELSE()

packages/Meshfree/src/DTK_DetailsMovingLeastSquaresOperatorImpl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ struct MovingLeastSquaresOperatorImpl
122122
ArborX::Point{{source_points( j, 0 ),
123123
source_points( j, 1 ),
124124
source_points( j, 2 )}},
125-
ArborX::Point{{0., 0., 0.}} );
125+
ArborX::Point{0., 0., 0.} );
126126

127127
if ( new_distance > distance )
128128
distance = new_distance;
@@ -162,7 +162,7 @@ struct MovingLeastSquaresOperatorImpl
162162
phi( i ) = rbf( ArborX::Details::distance(
163163
ArborX::Point{{source_points( i, 0 ), source_points( i, 1 ),
164164
source_points( i, 2 )}},
165-
ArborX::Point{{0., 0., 0.}} ) );
165+
ArborX::Point{0., 0., 0.} ) );
166166
} );
167167
Kokkos::fence();
168168
return phi;

0 commit comments

Comments
 (0)