VecLoad very time consuming
Barry Smith
bsmith at mcs.anl.gov
Tue Sep 16 10:17:05 CDT 2008
Michel,
Please send all your program, Matlab and C/Fortran with
instructions on how to run it
to petsc-maint at mcs.anl.gov I would like to run it, reproduce the
problem and see if there
is some solution. Something is VERY wrong.
Barry
On Sep 16, 2008, at 8:15 AM, Michel Cancelliere wrote:
> Barry,
> On the matlab side the code spent almost all the time waiting for
> the solution (sent by Petsc), because the function
> PetscOpenSocket.read consumes more than the half of the all
> simulation. in attach I'm sending you a profile of the matlab code.
> is there some special format in which i can send to vector from
> matlab to petsc for a faster communication?
>
> Michel
> On Tue, Sep 16, 2008 at 2:15 PM, Barry Smith <bsmith at mcs.anl.gov>
> wrote:
>
> 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>
>
>
> <Screenshot_Profiler.jpg>
More information about the petsc-users
mailing list