<div dir="ltr"><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;"><div><blockquote type="cite"><div><div dir="ltr"><div class="gmail_quote"><div><br></div><div>Odd, but it seems to work fine for me now. eg, I get a speedup of 6x on a ~50K equation 3D systems (Q3 elements with 2 dof per vertex).</div><div> </div></div></div></div></blockquote><div><br></div><div>Mark, is it such speedup wrt the CPU version of SUPERLU_DIST? Or just the PETSc factorizations? </div></div></div></blockquote><div><br></div><div><br></div><div>I was not clear. THis is on SUMMIT. One CPU and one GPU. SUPERLU_DIST-GPU vs PETSc-CPU was about 6x faster. I have seen SUPERLU vs PETSc on the CPU on smaller problems and PETSc was a little faster.</div><div><br></div><div>Note, SUMMIT has 7 cores per GPU so it would be reasonable to run SUPERLU_DIST-CPU on 7 cores, in which case the speedup would clearly be gone, but that is not how I run this app.</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><br><blockquote type="cite"><div><div dir="ltr"><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 dir="ltr"><div style="font-family:verdana,sans-serif;font-size:small"><br></div><div style="font-family:verdana,sans-serif;font-size:small">I just updated the master branch with this fix.  Will be absorbed in a future release.</div><div style="font-family:verdana,sans-serif;font-size:small"><br></div><div style="font-family:verdana,sans-serif;font-size:small">As for PRNTlevel>=2, perhaps check your cmake build script.  It should be set to 0 for production build.</div><div style="font-family:verdana,sans-serif;font-size:small"><br></div></div></blockquote><div><br></div><div>I don't see where that gets set. PRNTlevel does not seem to be in our repo. I see it in 'MAKE_INC/make.cuda_gpu:         -DDEBUGlevel=0 -DPRNTlevel=1 -DPROFlevel=0', but I think it is set at >= 2. I have manually disabled the print statements (~ 5 places).</div><div><br></div><div>Thanks,</div><div>Mark</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 dir="ltr"><div style="font-family:verdana,sans-serif;font-size:small"></div><div style="font-family:verdana,sans-serif;font-size:small">Sherry</div><div style="font-family:verdana,sans-serif;font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Apr 19, 2020 at 6:32 PM Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Also, we have PRNTlevel>=2 in SuperLU_dist. This is causing a lot of output. It's not clear where that is set (it's a #define)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Apr 19, 2020 at 9:28 PM Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Sherry, I found the problem.<div><br></div><div>I added this print statement to dDestroy_LU</div><div><br></div><div>    nb = CEILING(nsupers, grid->npcol);<br>    for (i = 0; i < nb; ++i) <br>        if ( Llu->Lrowind_bc_ptr[i] ) {<br><b><font color="#ff0000">       fprintf(stderr,"dDestroy_LU: GPU free Llu->Lnzval_bc_ptr[%d/%d] = %p, CPU free Llu->Lrowind_bc_ptr = %p\n",i,nb,Llu->Lnzval_bc_ptr[i],Llu->Lrowind_bc_ptr[i]);<br></font></b>            SUPERLU_FREE (Llu->Lrowind_bc_ptr[i]);<br>#ifdef GPU_ACC<br>           checkCuda(cudaFreeHost(Llu->Lnzval_bc_ptr[i]));<br>#else<br>           SUPERLU_FREE (Llu->Lnzval_bc_ptr[i]);<br>#endif<br>        }<br></div><div><br></div><div>And I see:</div><div><br></div><div>   1 SNES Function norm 1.245977692562e-04<br><b>dDestroy_LU: GPU free Llu->Lnzval_bc_ptr[0/134] = 0x4ff9b000, CPU free Llu->Lrowind_bc_ptr = 0x4ff9a000<br></b>ex112d: <a href="http://cudahook.cc:762" target="_blank">cudahook.cc:762</a>: CUresult host_free_callback(void*): Assertion `cacheNode != __null' failed.<br></div><div><br></div><div>THis looks like Lnzval_bc_ptr is on the CPU so I removed the GPU_ACC stuff and it works now.</div><div><br></div><div>I see this in distribution. Perhaps this a serial run bug?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Apr 19, 2020 at 5:58 PM Xiaoye S. Li <<a href="mailto:xsli@lbl.gov" target="_blank">xsli@lbl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:verdana,sans-serif;font-size:small">Mark,</div><div style="font-family:verdana,sans-serif;font-size:small">you should fork a branch of your own to do this.</div><div style="font-family:verdana,sans-serif;font-size:small"><br></div><div style="font-family:verdana,sans-serif;font-size:small">Sherry</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Apr 19, 2020 at 2:54 PM Stefano Zampini <<a href="mailto:stefano.zampini@gmail.com" target="_blank">stefano.zampini@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">First, commit your changes to the superlu_dist branch, then rerun configure with<br>
<br>
—download-superlu_dist-commit=HEAD<br>
<br>
<br>
> On Apr 20, 2020, at 12:50 AM, Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> wrote:<br>
> <br>
> I would like to modify SuperLU_dist but if I change the source and configure it says no need to reconfigure, use --force. I use --force and it seems to clobber my changes. Can I tell configure to use build but not download SuperLU?<br>
<br>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div></div>
</div></blockquote></div><br></div></blockquote></div></div>