I made some progress yesterday by changing this line tvm/papi.cc at main · apache/tvm · GitHub to component_name=“nvml”.
However, every metric that gets reported by PAPI & NVML is 0, despite NVML working properly in the PAPI test cases and the nvidia-smi tool. I am not sure, where or why this error occurs.
By going through the process with gdb, I can see that PAPI seems to be collecting the correct data, but if I want to output it in TVM, it is always 0, for all metrics.
I am unable to access the values here: