This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

about profile and cachetune

hello, I have a question when I use cachetune to analyse my code. In my code, I had defined
a static const variable quant4_scale , after I profile the program, I found much
L1D.write_miss in quant4_scale, why? it is a static const variable.

 

 

 

  • Hi,

             Static variable are like global variable, i believe it's conflicting with other data structures in your applications. You can view the conflicting variable & address range using cache tune. Based on the conflict information, place your static variable in new memory sections which is not conflicting with the variables & arrays.

    Note: If you misses are due to capacity misses then you might want to rearrange you code.

    regards,

    Mani