I am trying to estimate the power consumption of my OpenCL kernel running on AMD Radeon RX Vega GPU. is there a way to access the power consumption through OpenCL directly?
I tried using profilers but could not find one that supports AMD GPUs or OpenCL, so I want to do it through programming if that's possible.
I now managed to access the average power consumption of the GPU (provided in mW) through the rocm_smi library. this is a little tricky and more of an estimate because it is hard to call while the kernel is launched. However, if the kernel's runtime is long enough, I can run rocm_smi from command line and get the average power consumption during the kernel's launch.