Introduction
MeterPU: Library for measuring different metrics on different backends.
Installation
- Include "MeterPU.h" in your program
- Compile your program with native measurement library paths if necessary.
- E.g. if CUDA Energy Meter is used, compile your program with NVML library by passing -I and -L flag.
- For CPU Time Meter, no library is needed.
- Also pass the following flag if the following Meter is used.
- CUDA Time Meter: -DENABLE_CUDA_TIME
- CPU and DRAM Energy Meter: -DENABLE_PCM
- CUDA GPU Energy Meter: -DENABLE_NVML
- System Energy Meter: -DENABLE_SYSTEM_ENERGY
- Done!
See more examples in example folder.