Example Programs

Variorum provides some examples in the examples/ directory. These include examples of our APIs, usage with MPI and OpenMP, and an example for integrating with Variorum using the JSON API. Note that on Intel systems, we make a call to Variorum print API twice in our examples, as Intel systems require a delta between values to report adequate power numbers.


All example codes have a print and print_verbose version showcasing the different printouts supported by Variorum.