On Fri, Sep 4, 2009 at 2:25 PM, Nguyen, Hung V ERDC-ITL-MS <span dir="ltr"><<a href="mailto:Hung.V.Nguyen@usace.army.mil">Hung.V.Nguyen@usace.army.mil</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hello,<br>
<br>
I have a problem with saving a matrix with the binary viewer<br>
PetscBinaryViewerOpen() for the matrix with nrow=853564, nnzeros=47191472.<br>
The application ran with 32 pes for more than 3 hours without writing any<br>
into file.<br>
However, the same executable ran for small size of application<br>
(nrows-12856,nnzeros=675744) and were able to write successfully binary<br>
files.<br></blockquote><div><br>Much bigger matrices than this are routinely saved. I do not think this has to do<br>with MatView() in particular, unless this is a very slow disk. You can check with the<br>debugger where the code is currently occupied. This sounds to me more like a<br>
deadlock (not calling the routine with every process).<br><br> Matt<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Note: using Totalview I found that it hang in the line of<br>
Matview(matrix->petsc, fd);<br>
<br>
Thank you,<br>
<br>
-hung<br>
<br>
--- code:<br>
petsc_analyst_mat(matrix->petsc);<br>
sprintf(file[LOAD_MATRIX],"Matrix.at%f",t_prev);<br>
PetscViewerBinaryOpen(PETSC_COMM_WORLD,<br>
file[LOAD_MATRIX],FILE_MODE_WRITE,&fd);<br>
MatView(matrix->petsc, fd);<br>
PetscViewerDestroy(fd);<br>
<br>
---- Matrix info using salsa/AnaMod module:<br>
<br>
Computed <simple:trace> as <9.362113e+03><br>
Computed <simple:trace-abs> as <9.362623e+03><br>
Computed <simple:norm1> as <2.800000e+01><br>
Computed <simple:normInf> as <2.800000e+01><br>
Computed <simple:normF> as <2.404511e+02><br>
Computed <simple:diagonal-dominance> as <-3.064463e-02><br>
Could not compute <simple:symmetry-snorm><br>
Could not compute <simple:symmetry-anorm><br>
Could not compute <simple:symmetry-fsnorm><br>
Could not compute <simple:symmetry-fanorm><br>
Could not compute <structure:n-struct-unsymm><br>
Computed <structure:nrows> as <853564><br>
Could not compute <structure:symmetry><br>
Computed <structure:nnzeros> as <47191472><br>
Computed <structure:max-nnzeros-per-row> as <112><br>
Computed <structure:min-nnzeros-per-row> as <16><br>
</blockquote></div><br><br clear="all"><br>-- <br>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<br>