Power and performance modeling for high-performance computing algorithms