<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Mon, Oct 29, 2018 at 5:19 PM Balay, Satish <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">both 'long' and 'long long' should be 64bit.<br>
<br>
Did this work before - and change today? [i.e due to one of the PR merges?]<br></blockquote><div><br></div><div>I am not sure, but probably not. I don't always check the makelogs and I am just getting this machine/compiler working. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Satish<br>
<br>
On Mon, 29 Oct 2018, Matthew Knepley via petsc-dev wrote:<br>
<br>
> On Mon, Oct 29, 2018 at 4:56 PM Mark Adams via petsc-dev <<br>
> <a href="mailto:petsc-dev@mcs.anl.gov" target="_blank">petsc-dev@mcs.anl.gov</a>> wrote:<br>
> <br>
> > I am building a fresh PETSc with GNU on Titan and I get these warnings<br>
> > about incompatible pointers in calls in PlexPartition to MarMetis.<br>
> ><br>
> <br>
> Looks like PETSc has 64-bit ints and ParMetis has 32-bit ints. Just have<br>
> PETSc build ParMetis.<br>
> <br>
>   Thanks,<br>
> <br>
>     Matt<br>
> <br>
> <br>
> > Mark<br>
> ><br>
> > /lustre/atlas1/geo127/proj-shared/petsc/src/dm/impls/plex/plexpartition.c:<br>
> > In function 'PetscPartitionerPartition_ParMetis':<br>
> > /lustre/atlas1/geo127/proj-shared/petsc/src/dm/impls/plex/plexpartition.c:1461:40:<br>
> > warning: passing argument 1 of 'METIS_SetDefaultOptions' from incompatible<br>
> > pointer type [-Wincompatible-pointer-types]<br>
> >          ierr = METIS_SetDefaultOptions(options); /* initialize all<br>
> > defaults */<br>
> >                                         ^~~~~~~<br>
> > In file included from<br>
> > /lustre/atlas/proj-shared/geo127/petsc_titan_opt64idx_gnu_cuda/include/parmetis.h:18:0,<br>
> >                  from<br>
> > /lustre/atlas1/geo127/proj-shared/petsc/src/dm/impls/plex/plexpartition.c:1395:<br>
> > /lustre/atlas/proj-shared/geo127/petsc_titan_opt64idx_gnu_cuda/include/metis.h:229:16:<br>
> > note: expected 'idx_t * {aka long int *}' but argument is of type 'PetscInt<br>
> > * {aka long long int *}'<br>
> >  METIS_API(int) METIS_SetDefaultOptions(idx_t *options);<br>
> >                 ^~~~~~~~~~~~~~~~~~~~~~~<br>
> > /lustre/atlas1/geo127/proj-shared/petsc/src/dm/impls/plex/plexpartition.c:1465:43:<br>
> > warning: passing argument 1 of 'METIS_PartGraphRecursive' from incompatible<br>
> > pointer type [-Wincompatible-pointer-types]<br>
> >            ierr = METIS_PartGraphRecursive(&nvtxs, &ncon, xadj, adjncy,<br>
> > vwgt, NULL, adjwgt, &nparts, tpwgts, ubvec, options, &edgeCut, assignment);<br>
> >                                            ^<br>
> > In file included from<br>
> > /lustre/atlas/proj-shared/geo127/petsc_titan_opt64idx_gnu_cuda/include/parmetis.h:18:0,<br>
> >                  from<br>
> > /lustre/atlas1/geo127/proj-shared/petsc/src/dm/impls/plex/plexpartition.c:1395:<br>
> > /lustre/atlas/proj-shared/geo127/petsc_titan_opt64idx_gnu_cuda/include/metis.h:199:16:<br>
> > note: expected 'idx_t * {aka long int *}' but argument is of type 'PetscInt<br>
> > * {aka long long int *}'<br>
> >  METIS_API(int) METIS_PartGraphRecursive(idx_t *nvtxs, idx_t *ncon, idx_t<br>
> > *xadj,<br>
> >                 ^~~~~~~~~~~~~~~~~~~~~~~~<br>
> > /lustre/atlas1/geo127/proj-shared/petsc/src/dm/impls/plex/plexpartition.c:1465:51:<br>
> > warning: passing argument 2 of 'METIS_PartGraphRecursive' from incompatible<br>
> > pointer type [-Wincompatible-pointer-types]<br>
> >            ierr = METIS_PartGraphRecursive(&nvtxs, &ncon, xadj, adjncy,<br>
> > vwgt, NULL, adjwgt, &nparts, tpwgts, ubvec, options, &edgeCut, assignment);<br>
> >                                                    ^<br>
> > In file included from<br>
> > /lustre/atlas/proj-shared/geo127/petsc_titan_opt64idx_gnu_cuda/include/parmetis.h:18:0,<br>
> >                  from<br>
> > /lustre/atlas1/geo127/proj-shared/petsc/src/dm/impls/plex/plexpartition.c:1395:<br>
> > /lustre/atlas/proj-shared/geo127/petsc_titan_opt64idx_gnu_cuda/include/metis.h:199:16:<br>
> > note: expected 'idx_t * {aka long int *}' but argument is of type 'PetscInt<br>
> > * {aka long long int *}'<br>
> >  METIS_API(int) METIS_PartGraphRecursive(idx_t *nvtxs, idx_t *ncon, idx_t<br>
> > *xadj,<br>
> >                 ^~~~~~~~~~~~~~~~~~~~~~~~<br>
> > /lustre/atlas1/geo127/proj-shared/petsc/src/dm/impls/plex/plexpartition.c:1465:58:<br>
> > warning: passing argument 3 of 'METIS_PartGraphRecursive' from incompatible<br>
> > pointer type [-Wincompatible-pointer-types]<br>
> >            ierr = METIS_PartGraphRecursive(&nvtxs, &ncon, xadj, adjncy,<br>
> > vwgt, NULL, adjwgt, &nparts, tpwgts, ubvec, options, &edgeCut, assignment);<br>
> >                                                           ^~~~<br>
> > In file included from<br>
> > /lustre/atlas/proj-shared/geo127/petsc_titan_opt64idx_gnu_cuda/include/parmetis.h:18:0,<br>
> >                  from<br>
> > /lustre/atlas1/geo127/proj-shared/petsc/src/dm/impls/plex/plexpartition.c:1395:<br>
> > /lustre/atlas/proj-shared/geo127/petsc_titan_opt64idx_gnu_cuda/include/metis.h:199:16:<br>
> > note: expected 'idx_t * {aka long int *}' but argument is of type 'PetscInt<br>
> > * {aka long long int *}'<br>
> >  METIS_API(int) METIS_PartGraphRecursive(idx_t *nvtxs, idx_t *ncon, idx_t<br>
> > *xadj,<br>
> >                 ^~~~~~~~~~~~~~~~~~~~~~~~<br>
> > /lustre/atlas1/geo127/proj-shared/petsc/src/dm/impls/plex/plexpartition.c:1465:64:<br>
> > warning: passing argument 4 of 'METIS_PartGraphRecursive' from incompatible<br>
> > pointer type [-Wincompatible-pointer-types]<br>
> >            ierr = METIS_PartGraphRecursive(&nvtxs, &ncon, xadj, adjncy,<br>
> > vwgt, NULL, adjwgt, &nparts, tpwgts, ubvec, options, &edgeCut, assignment);<br>
> >                                                                 ^~~~~~<br>
> > In file included from<br>
> > /lustre/atlas/proj-shared/geo127/petsc_titan_opt64idx_gnu_cuda/include/parmetis.h:18:0,<br>
> >                  from<br>
> > /lustre/atlas1/geo127/proj-shared/petsc/src/dm/impls/plex/plexpartition.c:1395:<br>
> > /lustre/atlas/proj-shared/geo127/petsc_titan_opt64idx_gnu_cuda/include/metis.h:199:16:<br>
> > note: expected 'idx_t * {aka long int *}' but argument is of type 'PetscInt<br>
> > * {aka long long int *}'<br>
> >  METIS_API(int) METIS_PartGraphRecursive(idx_t *nvtxs, idx_t *ncon, idx_t<br>
> > *xadj,<br>
> >                 ^~~~~~~~~~~~~~~~~~~~~~~~<br>
> > /lustre/atlas1/geo127/proj-shared/petsc/src/dm/impls/plex/plexpartition.c:1465:72:<br>
> > warning: passing argument 5 of 'METIS_PartGraphRecursive' from incompatible<br>
> > pointer type [-Wincompatible-pointer-types]<br>
> >            ierr = METIS_PartGraphRecursive(&nvtxs, &ncon, xadj, adjncy,<br>
> > vwgt, NULL, adjwgt, &nparts, tpwgts, ubvec, options, &edgeCut, assignment);<br>
> ><br>
> > ^~~~<br>
> > In file included from<br>
> > /lustre/atlas/proj-shared/geo127/petsc_titan_opt64idx_gnu_cuda/include/parmetis.h:18:0,<br>
> >                  from<br>
> > /lustre/atlas1/geo127/proj-shared/petsc/src/dm/impls/plex/plexpartition.c:1395:<br>
> > /lustre/atlas/proj-shared/geo127/petsc_titan_opt64idx_gnu_cuda/include/metis.h:199:16:<br>
> > note: expected 'idx_t * {aka long int *}' but argument is of type 'PetscInt<br>
> > * {aka long long int *}'<br>
> >  METIS_API(int) METIS_PartGraphRecursive(idx_t *nvtxs, idx_t *ncon, idx_t<br>
> > *xadj,<br>
> >                 ^~~~~~~~~~~~~~~~~~~~~~~~<br>
> > /lustre/atlas1/geo127/proj-shared/petsc/src/dm/impls/plex/plexpartition.c:1465:84:<br>
> > warning: passing argument 7 of 'METIS_PartGraphRecursive' from incompatible<br>
> > pointer type [-Wincompatible-pointer-types]<br>
> >            ierr = METIS_PartGraphRecursive(&nvtxs, &ncon, xadj, adjncy,<br>
> > vwgt, NULL, adjwgt, &nparts, tpwgts, ubvec, options, &edgeCut, assignment);<br>
> ><br>
> >           ^~~~~~<br>
> > In file included from<br>
> > /lustre/atlas/proj-shared/geo127/petsc_titan_opt64idx_gnu_cuda/include/parmetis.h:18:0,<br>
> >                  from<br>
> > /lustre/atlas1/geo127/proj-shared/petsc/src/dm/impls/plex/plexpartition.c:1395:<br>
> > /lustre/atlas/proj-shared/geo127/petsc_titan_opt64idx_gnu_cuda/include/metis.h:199:16:<br>
> > note: expected 'idx_t * {aka long int *}' but argument is of type 'PetscInt<br>
> > * {aka long long int *}'<br>
> >  METIS_API(int) METIS_PartGraphRecursive(idx_t *nvtxs, idx_t *ncon, idx_t<br>
> > *xadj,<br>
> >                 ^~~~~~~~~~~~~~~~~~~~~~~~<br>
> > /lustre/atlas1/geo127/proj-shared/petsc/src/dm/impls/plex/plexpartition.c:1465:92:<br>
> > warning: passing argument 8 of 'METIS_PartGraphRecursive' from incompatible<br>
> > pointer type [-Wincompatible-pointer-types]<br>
> >            ierr = METIS_PartGraphRecursive(&nvtxs, &ncon, xadj, adjncy,<br>
> > vwgt, NULL, adjwgt, &nparts, tpwgts, ubvec, options, &edgeCut, assignment);<br>
> ><br>
> >                   ^<br>
> > In file included from<br>
> > /lustre/atlas/proj-shared/geo127/petsc_titan_opt64idx_gnu_cuda/include/parmetis.h:18:0,<br>
> >                  from<br>
> > /lustre/atlas1/geo127/proj-shared/petsc/src/dm/impls/plex/plexpartition.c:1395:<br>
> > /lustre/atlas/proj-shared/geo127/petsc_titan_opt64idx_gnu_cuda/include/metis.h:199:16:<br>
> > note: expected 'idx_t * {aka long int *}' but argument is of type 'PetscInt<br>
> > * {aka long long int *}'<br>
> >  METIS_API(int) METIS_PartGraphRecursive(idx_t *nvtxs, idx_t *ncon, idx_t<br>
> > *xadj,<br>
> >                 ^~~~~~~~~~~~~~~~~~~~~~~~<br>
> > /lustre/atlas1/geo127/proj-shared/petsc/src/dm/impls/plex/plexpartition.c:1465:116:<br>
> > warning: passing argument 11 of 'METIS_PartGraphRecursive' from<br>
> > incompatible pointer type [-Wincompatible-pointer-types]<br>
> >            ierr = METIS_PartGraphRecursive(&nvtxs, &ncon, xadj, adjncy,<br>
> > vwgt, NULL, adjwgt, &nparts, tpwgts, ubvec, options, &edgeCut, assignment);<br>
> ><br>
> >                                           ^~~~~~~<br>
> > In file included from<br>
> > /lustre/atlas/proj-shared/geo127/petsc_titan_opt64idx_gnu_cuda/include/parmetis.h:18:0,<br>
> >                  from<br>
> > /lustre/atlas1/geo127/proj-shared/petsc/src/dm/impls/plex/plexpartition.c:1395:<br>
> > /lustre/atlas/proj-shared/geo127/petsc_titan_opt64idx_gnu_cuda/include/metis.h:199:16:<br>
> > note: expected 'idx_t * {aka long int *}' but argument is of type 'PetscInt<br>
> > * {aka long long int *}'<br>
> >  METIS_API(int) METIS_PartGraphRecursive(idx_t *nvtxs, idx_t *ncon, idx_t<br>
> > *xadj,<br>
> >                 ^~~~~~~~~~~~~~~~~~~~~~~~<br>
> > /lustre/atlas1/geo127/proj-shared/petsc/src/dm/impls/plex/plexpartition.c:1465:125:<br>
> > warning: passing argument 12 of 'METIS_PartGraphRecursive' from<br>
> > incompatible pointer type [-Wincompatible-pointer-types]<br>
> >            ierr = METIS_PartGraphRecursive(&nvtxs, &ncon, xadj, adjncy,<br>
> > vwgt, NULL, adjwgt, &nparts, tpwgts, ubvec, options, &edgeCut, assignment);<br>
> ><br>
> >                                                    ^<br>
> > In file included from<br>
> > /lustre/atlas/proj-shared/geo127/petsc_titan_opt64idx_gnu_cuda/include/parmetis.h:18:0,<br>
> >                  from<br>
> > /lustre/atlas1/geo127/proj-shared/petsc/src/dm/impls/plex/plexpartition.c:1395:<br>
> > /lustre/atlas/proj-shared/geo127/petsc_titan_opt64idx_gnu_cuda/include/metis.h:199:16:<br>
> > note: expected 'idx_t * {aka long int *}' but argument is of type 'PetscInt<br>
> > * {aka long long int *}'<br>
> >  METIS_API(int) METIS_PartGraphRecursive(idx_t *nvtxs, idx_t *ncon, idx_t<br>
> > *xadj,<br>
> >                 ^~~~~~~~~~~~~~~~~~~~~~~~<br>
> > /lustre/atlas1/geo127/proj-shared/petsc/src/dm/impls/plex/plexpartition.c:1465:135:<br>
> > warning: passing argument 13 of 'METIS_PartGraphRecursive' from<br>
> > incompatible pointer type [-Wincompatible-pointer-types]<br>
> >            ierr = METIS_PartGraphRecursive(&nvtxs, &ncon, xadj, adjncy,<br>
> > vwgt, NULL, adjwgt, &nparts, tpwgts, ubvec, options, &edgeCut, assignment);<br>
> ><br>
> >                                                              ^~~~~~~~~~<br>
> > In file included from<br>
> > /lustre/atlas/proj-shared/geo127/petsc_titan_opt64idx_gnu_cuda/include/parmetis.h:18:0,<br>
> >                  from<br>
> > /lustre/atlas1/geo127/proj-shared/petsc/src/dm/impls/plex/plexpartition.c:1395:<br>
> > /lustre/atlas/proj-shared/geo127/petsc_titan_opt64idx_gnu_cuda/include/metis.h:199:16:<br>
> > note: expected 'idx_t * {aka long int *}' but argument is of type 'PetscInt<br>
> > * {aka long long int *}'<br>
> ><br>
> ><br>
> >  ..........<br>
> ><br>
> <br>
> <br>
> <br>
<br>
</blockquote></div></div>