I have been searching the code trying to find places where I can capture control flow and memory divergency. My goal is to characterize the degree of irregularity of different benchmarks. Hypothetically, the irregularity of control flow and memory access can be calculated as below:
I think I should define a counter for counting the number of branch divergence and replayed instructions, but I don't know where to define. I would be grateful if you could help me.
Hi.
I have been searching the code trying to find places where I can capture control flow and memory divergency. My goal is to characterize the degree of irregularity of different benchmarks. Hypothetically, the irregularity of control flow and memory access can be calculated as below:
I think I should define a counter for counting the number of branch divergence and replayed instructions, but I don't know where to define. I would be grateful if you could help me.
Thanks, Ben