<div dir="ltr"><div dir="ltr">On Wed, Jun 9, 2021 at 5:07 PM Jacob Faibussowitsch <<a href="mailto:jacob.fai@gmail.com">jacob.fai@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Hello All,<div><br></div><div>I’m getting these strange “warnings” (if you can even call them that), about struct vector alignments all over the shop when compiling with link time optimization enabled on summit. For reference this is with spectrum-mpi wrapping gcc v10.2.0. Here are a few examples:</div><div><br></div><div>/autofs/nccs-svm1_home1/jfaibussow/petsc/src/mat/impls/baij/seq/baij.c: In function 'MatDuplicateNoCreate_SeqBAIJ':<br>/autofs/nccs-svm1_home1/jfaibussow/petsc/src/mat/impls/baij/seq/baij.c:3250:21: note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5<br> 3250 |   c->bs2         = a->bs2;<br>      |                     ^<br><br>autofs/nccs-svm1_home1/jfaibussow/petsc/src/dm/dt/dualspace/impls/lagrange/dspacelagrange.c: In function 'PetscDualSpaceSetUp_Lagrange':<br>/autofs/nccs-svm1_home1/jfaibussow/petsc/src/dm/dt/dualspace/impls/lagrange/dspacelagrange.c:2291:15: note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5<br> 2291 |     sp->spdim = sp->spintdim = spdim;<br>      |               ^<br><br>/autofs/nccs-svm1_home1/jfaibussow/petsc/src/mat/impls/sell/mpi/mpisell.c: In function 'MatDuplicate_MPISELL':<br>/autofs/nccs-svm1_home1/jfaibussow/petsc/src/mat/impls/sell/mpi/mpisell.c:1232:27: note: the layout of aggregates containing vectors with 8-byte alignment has changed in GCC 5<br> 1232 |   a->size         = oldmat->size;<br>      |                           ^</div><div><br></div><div>There doesn’t seem to be anything the compiler wants you to do, which is strange. It just tells you about it. Googling it has not yielded useful info either. Is this our own buggy code at fault or just an internal compiler logging so rare that they forgot to turn it off?</div></div></blockquote><div><br></div><div>There seems to be a discussion of the option to turn these off here:</div><div><br></div><div>  <a href="https://stackoverflow.com/questions/52020305/what-exactly-does-gccs-wpsabi-option-do-what-are-the-implications-of-supressi">https://stackoverflow.com/questions/52020305/what-exactly-does-gccs-wpsabi-option-do-what-are-the-implications-of-supressi</a></div><div><br></div><div>   Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div><div>
<div dir="auto" style="text-align:start;text-indent:0px"><div dir="auto" style="text-align:start;text-indent:0px"><div>Best regards,<br><br>Jacob Faibussowitsch<br>(Jacob Fai - booss - oh - vitch)<br></div></div></div>
</div>

<br></div></div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>