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=e71ff27e7a7b118c8302915349c525d933899844;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 */