From 13fced7c1d23bc69bbedd729edd13fc3b6ed84b1 Mon Sep 17 00:00:00 2001 From: Bruno Turcksin Date: Thu, 18 Jan 2018 09:20:32 -0500 Subject: [PATCH] Make it clear that our CUDA wrappers only support float and double --- include/deal.II/lac/cuda_vector.h | 6 ++++-- include/deal.II/matrix_free/cuda_fe_evaluation.h | 4 ++-- include/deal.II/matrix_free/cuda_matrix_free.h | 2 ++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/include/deal.II/lac/cuda_vector.h b/include/deal.II/lac/cuda_vector.h index 6370afe42b..2dfa9d62fe 100644 --- a/include/deal.II/lac/cuda_vector.h +++ b/include/deal.II/lac/cuda_vector.h @@ -38,6 +38,8 @@ namespace LinearAlgebra * This class implements a vector using CUDA for use on Nvidia GPUs. This * class is derived from the LinearAlgebra::VectorSpaceVector class. * + * @note Only float and double are supported. + * * @ingroup CUDAWrappers * @ingroup Vectors * @author Karl Ljungkvist, Bruno Turcksin, 2016 @@ -215,8 +217,8 @@ namespace LinearAlgebra * twice. Since most vector operations are memory transfer limited, this * reduces the time by 25\% (or 50\% if @p W equals @p this). * - * For complex-valued vectors, the scalar product in the second step is implemented as - * $\left=\sum_i v_i \bar{w_i}$. + * For complex-valued vectors, the scalar product in the second step is + * implemented as $\left=\sum_i v_i \bar{w_i}$. */ virtual Number add_and_dot(const Number a, const VectorSpaceVector &V, diff --git a/include/deal.II/matrix_free/cuda_fe_evaluation.h b/include/deal.II/matrix_free/cuda_fe_evaluation.h index e6d84290c0..9805e68d1e 100644 --- a/include/deal.II/matrix_free/cuda_fe_evaluation.h +++ b/include/deal.II/matrix_free/cuda_fe_evaluation.h @@ -59,8 +59,8 @@ namespace CUDAWrappers * a vector Laplace equation), they can be applied simultaneously with one call * (and often more efficiently). Defaults to 1 * - * @tparam Number Number format, usually @p double or @p float. Defaults to @p - * double + * @tparam Number Number format, @p double or @p float. Defaults to @p + * double. * * @ingroup CUDAWrappers * diff --git a/include/deal.II/matrix_free/cuda_matrix_free.h b/include/deal.II/matrix_free/cuda_matrix_free.h index 50dccd6e2f..4b8dfc117e 100644 --- a/include/deal.II/matrix_free/cuda_matrix_free.h +++ b/include/deal.II/matrix_free/cuda_matrix_free.h @@ -65,6 +65,8 @@ namespace CUDAWrappers * This class traverse the cells in a different order than the usual * Triangulation class in deal.II. * + * @note Only float and double are supported. + * * @ingroup CUDAWrappers */ template -- 2.39.5