Skip to content
Snippets Groups Projects
Commit 0d157b97 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Disabled use of Kokkos deprecated code

parent b8bc95c0
No related branches found
No related tags found
No related merge requests found
...@@ -85,6 +85,9 @@ endif() ...@@ -85,6 +85,9 @@ endif()
# do not build ETI by default # do not build ETI by default
set(KOKKOS_ENABLE_EXPLICIT_INSTANTIATION OFF CACHE BOOL "") set(KOKKOS_ENABLE_EXPLICIT_INSTANTIATION OFF CACHE BOOL "")
# do not use Kokkos deprecated code
set(KOKKOS_ENABLE_DEPRECATED_CODE OFF CACHE BOOL "")
# Kokkso compiler flags # Kokkso compiler flags
add_subdirectory(${PASTIS_SOURCE_DIR}/packages/kokkos) add_subdirectory(${PASTIS_SOURCE_DIR}/packages/kokkos)
include_directories(${Kokkos_INCLUDE_DIRS_RET}) include_directories(${Kokkos_INCLUDE_DIRS_RET})
......
...@@ -21,7 +21,7 @@ public: ...@@ -21,7 +21,7 @@ public:
Kokkos::parallel_reduce(number_of_cells, KOKKOS_LAMBDA(const int& j, size_t& nb_max) { Kokkos::parallel_reduce(number_of_cells, KOKKOS_LAMBDA(const int& j, size_t& nb_max) {
const size_t n = cell_nb_nodes[j]; const size_t n = cell_nb_nodes[j];
if (n > nb_max) nb_max = n; if (n > nb_max) nb_max = n;
}, Max<size_t>(max_nb_node_per_cell)); }, Kokkos::Max<size_t>(max_nb_node_per_cell));
for (unsigned int j=0; j<number_of_cells; ++j) { for (unsigned int j=0; j<number_of_cells; ++j) {
for (unsigned int r=0; r<cell_nb_nodes[j]; ++r) { for (unsigned int r=0; r<cell_nb_nodes[j]; ++r) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment