<div dir="ltr">Dear PETSc user,<div><br></div><div>I am using MatMult() function in a C++ program.</div><div><br></div><div>Currently, my matrix is <span style="color:rgb(0,0,0)">MATMPIAIJ</span> format type, and I load the matrix from a binary file at petsc format. let's call the matrix A:</div>
<div><br></div><div>I know before the execution the global rows, columns and nnz.</div><div><br></div><div style>my program is doing something like:</div><div style><br></div><div style>global loop</div><div style>     //begin to measure flop rate</div>
<div style>     inner loop</div><div style>           MatMult(A,x,y)</div><div style>     end inner loop</div><div style>     //want to know Flop rate of Matmult at this point</div><div style>end global loop</div><div><br>
</div><div style>I am looking for a function to know at runtime the flop rate for each process regarding matmult function.</div><div style><br></div><div style>I had a look at pdf of Loic Gouarin (introduction to pertsc, performance May 2013) but it does not correspond to what i want, or i missunderstood?</div>
<div style><br></div><div style>My other solution is using the matmpiaijsetpreallocation and therefore know the complete parallel distribution of A, but this implies a pre-treatment on my matrix A.</div><div style><br></div>
<div style>I was wondering if i can create my matrix A without knowing in advance the parallel distribution and then collect the information about parallel distribution?</div><div style><br></div><div style>Or more easier, if a function like PetscGetFlops could solve my problem? </div>
<div style>so far i understood that this function measure the flop since the begining of program, but this is not what i want to use, i want to have the flop ratio right after ending the inner loop, and this, for each global iteration</div>
<div style><br></div><div style>Any ideas/suggestions would help,</div><div style><br></div><div style>Thank you very much,</div><div style><br></div><div style>France</div><div style><br></div><div><br>-- <br><div dir="ltr">
<div style="text-align:left">Bien cordialement - Best regards - Mit freundlichen Grüßen,  </div>
<div style="text-align:left"> </div>
<div style="text-align:left"><strong><font color="#000066">France BOILLOD-CERNEUX </font></strong></div>
<div style="text-align:left"><strong><font color="#000066">PhD Student, Laboratoire d'Informatique Fondamentale de Lille </font></strong></div>
<div style="text-align:left"><strong><font color="#000066">(LIFL), CNRS</font></strong></div>
<div style="text-align:left">
<div style="text-align:left"> </div>
<div style="text-align:left"><a href="mailto:France.Boillod-Cerneux@cea.fr" target="_blank">France.Boillod-Cerneux@cea.fr</a></div></div>
<div style="text-align:left"><font color="#330099">Tel. :</font> +33 (0) 1 6908 - 9527</div>
<div style="text-align:left"><font color="#330099">Tel. :</font> +33 (0) 6 4781 - 3059</div>
<div style="text-align:left"> </div>
<div style="text-align:left"><font color="#330099">DEN/DANS/DM2S<br>CEA Saclay<br>91191 Gif-sur-Yvette<br>FRANCE</font></div>
<div style="text-align:left"><font color="#000000"></font> </div>
<div style="text-align:left"><a href="http://www.lifl.fr/" target="_blank">http://www.lifl.fr/</a></div>
<div style="text-align:left"><a href="http://www-centre-saclay.cea.fr/en" target="_blank">www-centre-saclay.cea.fr</a></div>
<div style="text-align:left"> </div></div>
</div></div>