Power and energy management of modern architectures in adaptive HPC runtime systems