24 Aug
                
                    2017
                
            
            
                24 Aug
                
                '17
                
            
            
            
        
    
                9:59 a.m.
            
        On 24/08/17 09:57, Homolya, Miklós wrote:
Hello,
If what you want to measure happens to be the execution of a parloop kernel, since they are in C, you can just add the macros there. To modify generated code manually, locate the kernel in the PyOP2 disk cache, modify the C file, recompile the modified C file with the instructions in the .log file, which will create a .so.tmp file, which is to replace the .so file. Once you have done this, at the next execution Firedrake will pick up your manually modified .so file.
If you don't want to do this by hand it should be easy to modify the code generation to add them automatically. Lawrence