Skip to content

Conversation

ColinIanKing
Copy link

The missing declaration of HYPRE_BoomerAMGGetCumNnzAP is throwing a warning when building with gcc, fix this by including _hypre_parcsr_ls.h

amg.c: In function 'main':
amg.c:406:7: warning: implicit declaration of function 'HYPRE_BoomerAMGGetCumNnzAP'; did you mean 'HYPRE_BoomerAMGSetNumPaths'? [-Wimplicit-function-declaration]
406 | HYPRE_BoomerAMGGetCumNnzAP(pcg_precond, &cum_nnz_AP);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| HYPRE_BoomerAMGSetNumPaths

The missing declaration of HYPRE_BoomerAMGGetCumNnzAP is throwing a warning
when building with gcc, fix this by including _hypre_parcsr_ls.h

amg.c: In function 'main':
amg.c:406:7: warning: implicit declaration of function 'HYPRE_BoomerAMGGetCumNnzAP';
did you mean 'HYPRE_BoomerAMGSetNumPaths'? [-Wimplicit-function-declaration]
  406 |       HYPRE_BoomerAMGGetCumNnzAP(pcg_precond, &cum_nnz_AP);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |       HYPRE_BoomerAMGSetNumPaths

Signed-off-by: Colin Ian King <colin.king@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant