TensorFlow执行HPC
TensorFlow Doing HPC
摘要:
TensorFlow是一个流行的新兴开源编程框架,支持在异构硬件上执行分布式应用程序。虽然TensorFlow最初是为开发机器学习(ML)应用程序而设计的,但实际上TensorFlow旨在支持ML领域之外更广泛的应用程序类型的开发,并且可能包括HPC应用程序。然而,在超级计算机上运行HPC工作负载时,很少有实验来评估TensorFlow的性能。这项工作通过设计四个传统的HPC基准测试应用程序来解决这个问题:STREAM,矩阵-矩阵乘法,共轭梯度(CG)求解器和快速傅立叶变换(FFT)。我们分析了它们在两台带有加速器的超级计算机上的性能,并评估了TensorFlow开发HPC应用程序的潜力。我们的测试表明,TensorFlow可以充分利用超级计算机上的高性能网络和加速器。运行我们的TensorFlow STREAM基准测试,我们在测试平台上获得了超过50%的理论通信带宽。我们发现,当在矩阵-矩阵乘法、CG和FFT应用中将GPU数量从2增加到4时,性能分别提高了约2倍、1.7倍和1.8倍。我们所有的性能结果都表明,TensorFlow也有很大的潜力成为异构超级计算机的HPC编程框架。
英文摘要:
TensorFlow is a popular emerging open-source programming framework supporting the execution of distributed applications on heterogeneous hardware. While TensorFlow has been initially designed for developing Machine Learning (ML) applications, in fact TensorFlow aims at supporting the development of a much broader range of application kinds that are outside the ML domain and can possibly include HPC applications. However, very few experiments have been conducted to evaluate TensorFlow performance when running HPC workloads on supercomputers. This work addresses this lack by designing four traditional HPC benchmark applications: STREAM, matrix-matrix multiply, Conjugate Gradient (CG) solver and Fast Fourier Transform (FFT). We analyze their performance on two supercomputers with accelerators and evaluate the potential of TensorFlow for developing HPC applications. Our tests show that TensorFlow can fully take advantage of high performance networks and accelerators on supercomputers. Running our TensorFlow STREAM benchmark, we obtain over 50% of theoretical communication bandwidth on our testing platform. We find an approximately 2x, 1.7x and 1.8x performance improvement when increasing the number of GPUs from two to four in the matrix-matrix multiply, CG and FFT applications respectively. All our performance results demonstrate that TensorFlow has high potential of emerging also as HPC programming framework for heterogeneous supercomputers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。