VecLoad very time consuming

Barry Smith bsmith at mcs.anl.gov
Tue Sep 16 07:15:59 CDT 2008


VecLoad             9845 1.0 4.7432e+02 1.0 0.00e+00 0.0 0.0e+00 0.0e 
+00 0.0e+00 98  0  0  0  0  98  0  0  0  0     0

MatLoad             4922 1.0 6.7874e-01 1.0 0.00e+00 0.0 0.0e+00 0.0e 
+00 0.0e+00  0  0  0  0  0   0  0  0  0  0     0

    It is spending a huge amount of time in the VecLoad() but very  
little in the MatLoad(), this indicates to me that
the time in VecLoad() is not actually moving the vector, it is time  
spent waiting for the vector to be ready. I suggest
putting timers in the Matlab code to see where the Matlab codeis  
spending all its time, likely the Matlab code
is really the one taking all the time.

    Barry


On Sep 16, 2008, at 4:11 AM, Michel Cancelliere wrote:

> Hi,
> I have implemented a code for resolve with PETSc the linear system  
> inside a Newton method writed in matlab, I am using the socket  
> communication between Matlab and Petsc, but i get that about the 95%  
> of the time is spent in the VecLoad() function. Is this behaviour  
> normal? for the overhead time in the communication and writing and  
> reading to/from binaries?
>
> I am attaching the log_summary
>
> Thank you
> <log_prova_prec_NR_64_NZ_1_DT_1.log>




More information about the petsc-users mailing list