From: Timo Heister Date: Wed, 4 Sep 2024 21:53:07 +0000 (-0400) Subject: NVCC: work around compiler bug X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17660%2Fhead;p=dealii.git NVCC: work around compiler bug --- diff --git a/include/deal.II/lac/petsc_matrix_base.h b/include/deal.II/lac/petsc_matrix_base.h index 6c7d866ab6..4e87ac7d36 100644 --- a/include/deal.II/lac/petsc_matrix_base.h +++ b/include/deal.II/lac/petsc_matrix_base.h @@ -68,7 +68,15 @@ namespace PETScWrappers */ class const_iterator { +# ifdef __CUDA_ARCH__ + // NVCC, at least until 12.6, fails to compile the + // implementations of the nested Accessor class if + // it is declared as private. Work around this by + // making it public. + public: +# else private: +# endif /** * Accessor class for iterators */