VecLoad very time consuming
Michel Cancelliere
fernandez858 at gmail.com
Tue Sep 16 08:15:28 CDT 2008
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>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20080916/2c09078d/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot_Profiler.jpg
Type: image/jpeg
Size: 60675 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20080916/2c09078d/attachment.jpg>
More information about the petsc-users
mailing list