Efficient Machine Learning Approach for Optimizing Scientific Computing Applications on Emerging HPC Architectures