<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Begin forwarded message:</div><br class="Apple-interchange-newline"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">From: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Hong Zhang <<a href="mailto:hongzhang@anl.gov" class="">hongzhang@anl.gov</a>><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Subject: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">hbw_malloc on KNL</b><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Date: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">August 31, 2016 at 5:00:44 PM CDT<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">To: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">"Smith, Barry F." <<a href="mailto:bsmith@mcs.anl.gov" class="">bsmith@mcs.anl.gov</a>>, "Balay, Satish" <<a href="mailto:balay@mcs.anl.gov" class="">balay@mcs.anl.gov</a>>, "Schanen, Michel" <<a href="mailto:mschanen@anl.gov" class="">mschanen@anl.gov</a>><br class=""></span></div><br class=""><div class="">

<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class="">

<div class="">
<div class="BodyFragment"><font size="2" class=""><span style="font-size:10pt;" class="">
<div class="PlainText">Hi all,<br class="">
<br class="">
I am experimenting with hbw_malloc() in PETSc. I used it to replace the default malloc() in PETSc. But I got the following error messages on the screen when running my PETSc example:<br class="">
<br class="">
map size mismatch; abort<br class="">
: No such file or directory<br class="">
<br class="">
Each process threw out the above message twice. After that, the program continued to run to the end. But it took way more time than expected.<br class="">
<br class="">
The good news is, if I call hbw_malloc() to allocate a bit memory, e.g. 1 byte, before PetscInitialize(), the error will disappear and the example runs almost as fast as using the numactl option (which automatically put everything on MCDRAM). Although it works
 somehow, adding a test call to how_malloc() like this is just absurd. I am wondering if you have any clue on why this happens and how to fix it. FYI, I attached the driver for the PETSc example.<br class="">
<br class="">
Thanks,<br class="">
Hong<br class="">
</div>
</span></font></div>
<div class="BodyFragment"><font size="2" class=""><span style="font-size:10pt;" class="">
<div class="PlainText"> </div>
</span></font></div>
</div>

</div></blockquote></div></body></html>