NVlabs / NVBit

220 stars 20 forks source link

Getting PC from NVBit #110

Open nmustakin opened 1 year ago

nmustakin commented 1 year ago

Is there a way to get PTX PC from NVBit? For our purposes, we are trying to match each memory reference instruction (loads and stores) to a corresponding load/store instruction in NVVM IR. Since SASS output is loop unrolled, it becomes complicated to do so without knowing the program counter.

joannahuadu commented 9 months ago

Hello, I also have the same need to get PC. Is there any good solution to this problem?

nmustakin commented 9 months ago

@joannahuadu I did not find any way to get the PTX PC, but nvbit_get_line_info() gives you the CUDA line number if that helps.