SOCRATES - A seamless online compiler and system runtime autotuning framework for energy-aware applications