-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/03/2015 06:43, Zhen Zhang wrote:
> Hi everyone!
> 
> I am familiar with profiling C/C++ etc. program, but never profile 
> any Python related stuff. What's more, PyFR uses a lot of modules 
> and backends, which complicates it more.
> 
> So, I want to know is there any one who have profile PyFR
> instances?
> 
> Thanks for any help :)

The Python side of PyFR can be profiled using the standard Python
profiling tools.

python -mprofile -o out.prof ~/path/to/sim.py run ...

however this will not give any insight into the performance of the
backend code -- just the overhead due to the interpreter.

In terms of runtime performance this is generally backend specific.
The CUDA backend can be profiled like any other CUDA application using
either nvprof or nvvp.

OpenCL is more complicated and depends on the vendor.  At least for
AMD hardware there is a nice profiler that can give you some insight
into the kernels.

The C/OpenMP backend is not all that different from any normal piece
of C/C++ code.  Simply do:

  export PYFR_DEBUG_OMP_KEEP_LIBS=1

and then run PyFR under your favourite profiler.  On Linux I have had
good luck with both OProfile and likwid.

Regards, Freddie.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.20 (Darwin)
Comment: GPGTools - http://gpgtools.org

iEYEARECAAYFAlT9XN0ACgkQ/J9EM/uoqVcKlgCcCDkXlJ06IY0LpnI6v7/Q6sPN
3WcAniPuBQlmrgr+xXdSdi0jghV2sk92
=al1e
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups "PyFR 
Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
Visit this group at http://groups.google.com/group/pyfrmailinglist.
For more options, visit https://groups.google.com/d/optout.

Reply via email to