Use the GPU power observer for a Fortran-based program #229
-
I attended SC23 and found this powerful tool for performance tuning on the GPU. I have a Fortran-based program (using OpenACC for GPU offloading) and wonder whether I am able to use this tool to measure the GPU power consumption (i.e., I just need the GPU power (unit: W) or energy (unit: J) data, no need for tuning other parameters). |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Hi @sjsprecious while you could use Kernel Tuner to do that if you wanted, if you are not going to tune anything and you just want to measure the energy consumption this may be overkill. Are you interested in the energy consumption of each kernel, or the full program consumption? |
Beta Was this translation helpful? Give feedback.
-
Hi @isazi, thanks for your reply. I am more interested in the energy consumption of a full program that runs on the GPU. Do you know how I can measure it? I found some C++ examples online but not for Fortran so far. |
Beta Was this translation helpful? Give feedback.
-
Maybe something like EAR [1]? It is a daemon running on the system, so it works with any executable and provides you with energy measurements. |
Beta Was this translation helpful? Give feedback.
-
I think PMT (https://git.astron.nl/RD/pmt/) could work here. It's quite easy to interface C code from Fortran. Or you could directly use NVML of course. |
Beta Was this translation helpful? Give feedback.
-
Thanks @isazi and @benvanwerkhoven for your suggestions. That is very helpful! |
Beta Was this translation helpful? Give feedback.
I think PMT (https://git.astron.nl/RD/pmt/) could work here. It's quite easy to interface C code from Fortran. Or you could directly use NVML of course.