Question about the compiler used in Mako template library

Dear all,

My name is Antonio Garcia-Uceda, and I’m working on research on Flux Reconstruction methods.

I’d like to ask you concerning the Mako template library used in PyFR to write and compile on the fly the solver kernerls. I’d like to know which compiler it uses to compile the resulting c++ code when using the openmp backend. Does it use the default compiler assigned to “gcc”? Is there any way in Mako settings to change this compiler?

Thanks a lot in advance.

Best regards,
Antonio

Hi Antonio,

You can set the compiler in the .ini file. Specifically set ‘cc’ under '[backend-openmp]’.

Cheers

Peter

Dear Peter,

Thanks. I guess if not specified in the .ini file it catches the one set by default in “gcc”, right?

I have another question: Do you know whether it’s possible to set in Mako to keep the c++ files (they are tmp.c I think) somewhere and not to delete them after the PyFR launch is finished?

Thanks once more.

Best regards
Antonio

Hi Antonio,

Thanks. I guess if not specified in the .ini file it catches the
one set by default in "gcc", right?

The default compiler is "cc" if nothing is specified in the ini file.

I have another question: Do you know whether it's possible to set
in Mako to keep the c++ files (they are tmp.c I think) somewhere
and not to delete them after the PyFR launch is finished?

Before running PyFR do:

export PYFR_DEBUG_OMP_KEEP_LIBS=true

and then all of the kernels (source and shared libraries) will be
retained in your temporary directory; usually /tmp/pyfr-...-...

Regards, Freddie.

Thanks a lot for your reply

Antonio