Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix a warning when compiling with cuda support #14049

Merged
merged 1 commit into from Jun 27, 2022

Conversation

tamiko
Copy link
Member

@tamiko tamiko commented Jun 26, 2022

dealii/include/deal.II/matrix_free/cuda_matrix_free.templates.h:1027:17:
warning: loop variable ‘cell’ creates a copy from type ‘const
dealii::TriaActiveIterator<dealii::CellAccessor<3, 3> >’
[-Wrange-loop-construct]
dealii/include/deal.II/matrix_free/cuda_matrix_free.templates.h:1027:17:
note: use reference type to prevent copying
1027 | for (const auto cell :
| ^~~~
| &

dealii/include/deal.II/matrix_free/cuda_matrix_free.templates.h:1027:17:
    warning: loop variable ‘cell’ creates a copy from type ‘const
    dealii::TriaActiveIterator<dealii::CellAccessor<3, 3> >’
    [-Wrange-loop-construct]
dealii/include/deal.II/matrix_free/cuda_matrix_free.templates.h:1027:17:
    note: use reference type to prevent copying
 1027 |                 for (const auto cell :
      |                 ^~~~
      |                 &
@kronbichler kronbichler merged commit cf864a2 into dealii:master Jun 27, 2022
mkghadban pushed a commit to OpenFCST/dealii that referenced this pull request Sep 8, 2022
fix a warning when compiling with cuda support
@tamiko tamiko deleted the fix_cuda_warnings branch November 30, 2022 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants