Hi Cong,


recently we added more fine-grained timers measuring the elapsed time of different phases to the NEST source code, see here: https://nest-simulator.readthedocs.io/en/v3.3/guides/built-in_timers.html


If you are interested in the consumed memory you query it on the python level like this: nest.ll_api.sli_func('memory_thisjob')


If you are looking for more sophisticated performance metrics and measurements you might want to try tools such as VTune or Amduprof, depending on your architecture. They both support MPI and openMP, work on the C++ level and can be used in conjunction with pyNEST. If you are only interested in specific parts of the code, you can insert specific start and stop points into the source code for restricting data collection. E.g. if you are only interested in the simulation phase and not in the network construction phase, you could exclude the latter. In my experience it declutters the output and helps arriving at interpretable results. This could tackle the issue you had with gproof.


Hope this helps and let me know if you have more questions,


Jari


From: 512491013@qq.com <512491013@qq.com>
Sent: Thursday, May 26, 2022 5:57:14 AM
To: users@nest-simulator.org
Subject: [NEST Users] Test NEST performance
 
Dear all,

Recently, I've been trying to test NEST's performance(with and without MPI).
But with PyNEST, it's hard to do more detailed testing with tools like Gprof.
Only some print-time and memory methods can be inserted into the C++ source code for testing.

Is there a C++ front-end interface that can call NEST C++ source code for testing?

Of course, I used some of Python's performance testing tools, but only to the interface, not C++ in action.

I'd appreciate any tips on how to test NEST's performance!

Cong
_______________________________________________
NEST Users mailing list -- users@nest-simulator.org
To unsubscribe send an email to users-leave@nest-simulator.org


------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Volker Rieke
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr. Astrid Lambrecht,
Prof. Dr. Frauke Melchior
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------


Neugierige sind herzlich willkommen am Sonntag, den 21. August 2022, von 10:00 bis 17:00 Uhr. Mehr unter: https://www.tagderneugier.de