테스트스냅과 LAMMPS 를 활용한 고급 아키텍처에서의 최적화 전략 신속 탐색
Rapid Exploration of Optimization Strategies on Advanced Architectures using TestSNAP and LAMMPS
Rapid Exploration of Optimization Strategies on Advanced Architectures using TestSNAP and LAMMPS
@misc{gayatri2020rapid,
title = {Rapid Exploration of Optimization Strategies on Advanced Architectures using TestSNAP and LAMMPS},
author = {Rahulkumar Gayatri and Stan Moore and Evan Weinberg and Nicholas Lubbers and Sarah Anderson and Jack Deslippe and Danny Perez and Aidan P. Thompson},
year = {2020},
eprint = {2011.12875},
archivePrefix = {arXiv},
primaryClass = {cs.DC},
url = {https://arxiv.org/abs/2011.12875}
}
Gayatri, R., Moore, S., Weinberg, E., Lubbers, N., Anderson, S., Deslippe, J., Perez, D., & Thompson, A. P. (2020). Rapid Exploration of Optimization Strategies on Advanced Architectures using TestSNAP and LAMMPS [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2011.12875
GAYATRI R, MOORE S, WEINBERG E, et al. Rapid Exploration of Optimization Strategies on Advanced Architectures using TestSNAP and LAMMPS[EB/OL]. (2020-11-25)[2026-11-29]. https://arxiv.org/abs/2011.12875.
초록
Aurora 와 Frontier 기계의 발표로 엑사스케일 경쟁은 막을 내렸다. 이 차세대 슈퍼컴퓨터는 다양한 하드웨어 아키텍처를 활용하여 연산 성능을 달성함으로써 애플리케이션의 성능 포터빌리티에 추가적인 부담을 가중시켰다. 프로그래밍 모델의 확대된 분할화는 성능 포터빌리티 프레임워크의 진화 없이는 최적화 문제를 더 악화시켰을 것이다. 이러한 프레임워크는 추상적 병렬성 계층을 다양한 아키텍처에 매핑하는 통합 모델을 제공함으로써 진화해 왔다. 이 문제의 해결책은 성능 포터빌리티 프레임워크의 진화이며, 이는 추상적 병렬성 계층을 다양한 아키텍처에 매핑하는 통합 모델을 제공한다. Kokkos 는 C++ 애플리케이션을 위한 하나의 성능 포터빌리티 프로그래밍 모델로, 주요 HPC 플랫폼 각각에 대한 백엔드 구현을 제공한다. 성능 포터빌리티 프레임워크가 있더라도 알고리즘을 재구축하여 더 높은 수준의 병렬성을 노출하는 것은 비자명하다. 분광 이웃 분석 퍼텐셜 (Spectral Neighbor Analysis Potential, SNAP) 은 최신 분자 동역학 시뮬레이션에 사용되는 기계 학습 기반 원자 간 퍼텐셜이다. 이전 SNAP 계산 구현은 최신 세대 CPU 에 비해 성능이 하락하는 경향을 보였으며, GPU 상에서는 낮은 성능을 보였다. 본 논문에서는 LAMMPS 분자 동역학 패키지의 Kokkos CUDA 백엔드에서 구현된 SNAP 의 재구축 및 최적화를 기술하며, NVIDIA GPU 상에서 벤치마킹한다. 우리는 계층적 병렬성의 새로운 패턴을 식별하여 메모리 접근 오버헤드를 최소화하고 구현을 계산 포화 영역으로 밀어붙였다. Kokkos 를 통한 구현은 향후 아키텍처에서의 재컴파일 및 실행 효율성을 가능하게 한다. NVIDIA Tesla V100-16GB 를 기준으로 중요한 벤치마크에서 기존 구현 대비 22 배의 시간대해 개선 (time-to-solution improvement) 을 확인했다.
The exascale race is at an end with the announcement of the Aurora and Frontier machines. This next generation of supercomputers utilize diverse hardware architectures to achieve their compute performance, providing an added onus on the performance portability of applications. An expanding fragmentation of programming models would provide a compounding optimization challenge were it not for the evolution of performance-portable frameworks, providing unified models for mapping abstract hierarchies of parallelism to diverse architectures. A solution to this challenge is the evolution of performance-portable frameworks, providing unified models for mapping abstract hierarchies of parallelism to diverse architectures. Kokkos is one such performance portable programming model for C++ applications, providing back-end implementations for each major HPC platform. Even with a performance portable framework, restructuring algorithms to expose higher degrees of parallelism is non-trivial. The Spectral Neighbor Analysis Potential (SNAP) is a machine-learned inter-atomic potential utilized in cutting-edge molecular dynamics simulations. Previous implementations of the SNAP calculation showed a downward trend in their performance relative to peak on newer-generation CPUs and low performance on GPUs. In this paper we describe the restructuring and optimization of SNAP as implemented in the Kokkos CUDA backend of the LAMMPS molecular dynamics package, benchmarked on NVIDIA GPUs. We identify novel patterns of hierarchical parallelism, facilitating a minimization of memory access overheads and pushing the implementation into a compute-saturated regime. Our implementation via Kokkos enables recompile-and-run efficiency on upcoming architectures. We find a 22x time-to-solution improvement relative to an existing implementation as measured on an NVIDIA Tesla V100-16GB for an important benchmark.