From 92951fa7959b8a6b53d40b61516b304068023bcc Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sat, 2 Mar 2019 17:16:12 +0100 Subject: [PATCH] Document the execution space some more --- include/deal.II/lac/trilinos_tpetra_vector.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/include/deal.II/lac/trilinos_tpetra_vector.h b/include/deal.II/lac/trilinos_tpetra_vector.h index 35e31cc92e..69303e2284 100644 --- a/include/deal.II/lac/trilinos_tpetra_vector.h +++ b/include/deal.II/lac/trilinos_tpetra_vector.h @@ -54,11 +54,18 @@ namespace LinearAlgebra * LinearAlgebra::VectorSpaceVector class and requires Trilinos to be * compiled with MPI support. * - * Tpetra uses Kokkos for thread-parallelism. In case Trilinos was - * configured with CUDA support, this class stores the values in unified - * virtual memory space and performs its action on the GPU. In particular, - * there is no need for manually synchronizing memory between host and - * device. + * Tpetra uses Kokkos for thread-parallelism and chooses the execution and + * memory space automatically depending on Kokkos configuration. The + * priority is ranked from highest to lowest: + * - Kokkos::Cuda + * - Kokkos::OpenMP + * - Kokkos::Threads + * - Kokkos::Serial + * + * In case Kokkos was configured with CUDA support, this class stores the + * values in unified virtual memory space and performs its action on the + * GPU. In particular, there is no need for manually synchronizing memory + * between host and device. * * @ingroup TrilinosWrappers * @ingroup Vectors -- 2.39.5