[petsc-users] Profiling objects creation
SCOTTO Alexandre
alexandre.scotto at irt-saintexupery.com
Tue Jun 10 06:44:49 CDT 2025
Hello Mat,
Thanks for your answer. I think this object is not available in petsc4py, at least I do not see any related elements in the documentation https://urldefense.us/v3/__https://petsc.org/main/petsc4py/reference/petsc4py.PETSc.html__;!!G_uCfscf7eWS!cDXOAoWknEhkWKDx0ghSlgUUMywVuLUCTz5sHEaHAVIJB_gsVlwjIfTb3qCF-mlz87Pdu0YEgddFhM80kaKVUDU_2z4ZrUvnN4KnKmo1uA$
So maybe this is not accessible in Python.
Regards,
Alexandre.
De : Matthew Knepley <knepley at gmail.com>
Envoyé : mardi 10 juin 2025 13:28
À : SCOTTO Alexandre <alexandre.scotto at irt-saintexupery.com>
Cc : petsc-users at mcs.anl.gov
Objet : Re: [petsc-users] Profiling objects creation
On Tue, Jun 10, 2025 at 5:30 AM SCOTTO Alexandre via petsc-users <petsc-users at mcs.anl.gov<mailto:petsc-users at mcs.anl.gov>> wrote:
Dear PETSc community,
I am using the PETSc API petsc4py and I am interested in profiling the number of PETSc objects created during the run of my script.
I have used the -log_view option to get information on the run in a dedicated file, and I got this (among other infirmation):
[cid:image001.png at 01DBDA0D.D4F90080]
This is precisely the information I am interested in, but here only the process 0 is tracked.
I is possible to have the same type of information for all the processes? I went through the documentation and was not able to figure it out.
You want to access
https://urldefense.us/v3/__https://petsc.org/main/manualpages/Log/PetscLogState/__;!!G_uCfscf7eWS!cDXOAoWknEhkWKDx0ghSlgUUMywVuLUCTz5sHEaHAVIJB_gsVlwjIfTb3qCF-mlz87Pdu0YEgddFhM80kaKVUDU_2z4ZrUvnN4K-TsOjuw$
which you get using
https://urldefense.us/v3/__https://petsc.org/main/manualpages/Log/PetscLogGetState/__;!!G_uCfscf7eWS!cDXOAoWknEhkWKDx0ghSlgUUMywVuLUCTz5sHEaHAVIJB_gsVlwjIfTb3qCF-mlz87Pdu0YEgddFhM80kaKVUDU_2z4ZrUvnN4LDDoJ1Ng$
Thanks,
Matt
Thanks in advance,
Regards.
--
What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.
-- Norbert Wiener
https://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!cDXOAoWknEhkWKDx0ghSlgUUMywVuLUCTz5sHEaHAVIJB_gsVlwjIfTb3qCF-mlz87Pdu0YEgddFhM80kaKVUDU_2z4ZrUvnN4IYMkm07A$ <https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!cDXOAoWknEhkWKDx0ghSlgUUMywVuLUCTz5sHEaHAVIJB_gsVlwjIfTb3qCF-mlz87Pdu0YEgddFhM80kaKVUDU_2z4ZrUvnN4Loeo_djg$ >
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250610/d3f70707/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 6518 bytes
Desc: image001.png
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20250610/d3f70707/attachment.png>
More information about the petsc-users
mailing list