accel-sim / accel-sim-framework

This is the top-level repository for the Accel-Sim framework.
https://accel-sim.github.io
Other
294 stars 114 forks source link

quantitatively measuring memory divergent kernels #260

Open beneslami opened 10 months ago

beneslami commented 10 months ago

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:

control-flow irregularity = divergent_branches / executed_instructions
memory-access irregularity = replayed_instructions / issued_instructions

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