On 02/07/2020 21:28, Kiny Wan wrote:
> Dear all, 
> 
>         In the publication of PyFR (PyFR: An open source framework for
> solving advection–diffusion type problems on streaming architectures
> using the flux reconstruction approach),  the idea of Mako is very
> interesting that extends a small piece of code into c- or cuda-type. I
> would like to ask about which python file in PyFR controls the
> transformation? and how to find the generated CUDA source/OpenMP
> annotated C source related to corresponding Mako template?

The translation is mostly done in the various subclasses of
BaseKernelGenerator in:

<https://github.com/PyFR/PyFR/blob/develop/pyfr/backends/base/generator.py>

Some of the Mako related functions are inside makoutil:

<https://github.com/PyFR/PyFR/blob/develop/pyfr/backends/base/makoutil.py>

If you want to see what the generated code looks like you can put a
print statement around:

<https://github.com/PyFR/PyFR/blob/develop/pyfr/backends/base/kernels.py#L80>

Regards, Freddie.

-- 
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 view this discussion on the web, visit 
https://groups.google.com/d/msgid/pyfrmailinglist/6bc6e7bf-51d5-5cb6-ac21-9b78557f3395%40witherden.org.

Reply via email to