<div dir="ltr"><div class="markdown-here-wrapper" style=""><p style="margin:0px 0px 1.2em!important"> Hi PETSc-developers, </p>
<p style="margin:0px 0px 1.2em!important">I think I’ve found the commit that broke this. In <a href="https://gitlab.com/petsc/petsc/merge_requests/1706?commit_id=84ccb19e065d3103c2f8e02df068ca6a03ec0e36">MR-1706</a>, the definition of PETSC_HDF5_INT_MAX was changed from being set to 2147483647 to (~(hsize_t)0). </p>
<p style="margin:0px 0px 1.2em!important">This new definition sets PETSC_HDF5_INT_MAX to 18446744073709551615 thereby changing the thresholds in the chunking logic at <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">src/vec/vec/impls/mpi/pdvec.c</code> (which causes the error I’m observing). </p>
<p style="margin:0px 0px 1.2em!important">I’m not sure where the number 2147483647 comes from but I tried looking at the older commits only to realize that <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">include/petscviewerhdf5.h</code> has always had this number (ever since this definition was moved over from <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">include/petscviewer.h</code>). </p>
<p style="margin:0px 0px 1.2em!important">Snippet to check value of (~(hsize_t)0) : </p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline;white-space:pre;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important">(ipy3) [sajid@xrmlite misc]$ cat ex.c
#include "hdf5.h"
int main() {
printf("ref=%llu \n",(~(hsize_t)0));
size_t size = sizeof(hsize_t);
printf("size = %zu\n", size);
}
(ipy3) [sajid@xrmlite misc]$ h5cc ex.c
(ipy3) [sajid@xrmlite misc]$ ./a.out
ref=18446744073709551615
size = 8
</code></pre><p style="margin:0px 0px 1.2em!important"><br>Thank You,<br>Sajid Ali<br>Applied Physics<br>Northwestern University<br><a href="http://s-sajid-ali.github.io">s-sajid-ali.github.io</a></p>
<div title="MDH:PGRpdiBkaXI9Imx0ciIgZ21haWxfb3JpZ2luYWw9IjEiPgo8ZGl2PjxkaXY+SGkgUEVUU2MtZGV2
ZWxvcGVycywgPGJyIGNsZWFyPSJhbGwiPjwvZGl2Pjxicj5JIHRoaW5rIEkndmUgZm91bmQgdGhl
IGNvbW1pdCB0aGF0IGJyb2tlIHRoaXMuIEluIE1SLTE3MDYsIHRoZSBkZWZpbml0aW9uIG9mIFBF
VFNDX0hERjVfSU5UX01BWCB3YXMgY2hhbmdlZCBmcm9tIGJlaW5nIHNldCB0byA8Y29kZT48c3Bh
biBpZD0iZ21haWwtTEMxNCIgY2xhc3M9ImdtYWlsLWxpbmUiIGxhbmc9ImMiPjxzcGFuIGNsYXNz
PSJnbWFpbC1jcCI+MjE0NzQ4MzY0NyA8L3NwYW4+PC9zcGFuPjwvY29kZT50byAKPGNvZGU+PHNw
YW4gaWQ9ImdtYWlsLUxDMTQiIGNsYXNzPSJnbWFpbC1saW5lIiBsYW5nPSJjIj48c3BhbiBjbGFz
cz0iZ21haWwtY3AiPih+KGhzaXplX3QpMCk8L3NwYW4+PC9zcGFuPjwvY29kZT4uIDxicj48L2Rp
dj48ZGl2Pjxicj48L2Rpdj48ZGl2PlRoaXMgbmV3IGRlZmluaXRpb24gc2V0cyAKUEVUU0NfSERG
NV9JTlRfTUFYIHRvIDE4NDQ2NzQ0MDczNzA5NTUxN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