Automatic Energy Saving Schemes for Parallel Applications