Automatic Performance Prediction of Parallel Programs