[petsc-users] Get CPU time from events

Theler German Guillermo gtheler at cites-gss.com
Mon Aug 3 10:50:36 CDT 2015


Hi Matt

I get empty PetscEventPerfInfo structures after calling
PetscLogEventGetPerfInfo(), i.e. both integers and floats are zero, as
if the structure was just calloc'ed and never filled. However, I managed
to get the overall stage CPU time (which is ok for me) by doing

PetscLogGetStageLog(&stageLog);

and then accessing stageLog->stageInfo[stage].perfInfo.time

I attach a modified src/ksp/ksp/examples/tutorials/ex1.c that tries to
illustrate my point.

--
jeremy


On Fri, 2015-07-31 at 09:00 -0500, Matthew Knepley wrote:
> 2015-07-31 8:43 GMT-05:00 Theler German Guillermo
> <gtheler at cites-gss.com>:
>         Is there a way to obtain as a PetscScalar the CPU time
>         associated to an
>         event or stage?
>         Something like PetscGetFlops() in an event or stage-based
>         basis?
>
>
> Here is a test where I do that:
>
>
>   https://bitbucket.org/petsc/petsc/src/77c2d1544b79e11f3573a3360b35a7573ef4d1bf/src/dm/impls/plex/examples/tests/ex9.c?at=master#ex9.c-237
>
>

>
________________________________
 Imprima este mensaje sólo si es absolutamente necesario.
Para imprimir, en lo posible utilice el papel de ambos lados.
El Grupo Sancor Seguros se compromete con el cuidado del medioambiente.



************AVISO DE CONFIDENCIALIDAD************

El Grupo Sancor Seguros comunica que:

Este mensaje y todos los archivos adjuntos a el son para uso exclusivo del destinatario y pueden contener información confidencial o propietaria, cuya divulgación es sancionada por ley. Si usted recibió este mensaje erróneamente, por favor notifíquenos respondiendo al remitente, borre el mensaje original y destruya las copias (impresas o grabadas en cualquier medio magnético) que pueda haber realizado del mismo. Todas las opiniones contenidas en este mail son propias del autor del mensaje. La publicación, uso, copia o impresión total o parcial de este mensaje o documentos adjuntos queda prohibida.

Disposición DNDP 10-2008. El titular de los datos personales tiene la facultad de ejercer el derecho de acceso a los mismos en forma gratuita a intervalos no inferiores a seis meses, salvo que acredite un interés legítimo al efecto conforme lo establecido en el artículo 14, inciso 3 de la Ley 25.326. La DIRECCIÓN NACIONAL DE PROTECCIÓN DE DATOS PERSONALES, Organo de Control de la Ley 25.326, tiene la atribución de atender las denuncias y reclamos que se interpongan con relación al incumplimiento de las normas sobre la protección de datos personales.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex1.c
Type: text/x-csrc
Size: 8205 bytes
Desc: ex1.c
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150803/2d022a34/attachment.c>


More information about the petsc-users mailing list