Ginkgo - 플랫폼 이동성을 위한 수학 라이브러리
Ginkgo - A Math Library designed for Platform Portability
Ginkgo - A Math Library designed for Platform Portability
@misc{cojean2020ginkgo,
title = {Ginkgo - A Math Library designed for Platform Portability},
author = {Terry Cojean and Yu-Hsiang "Mike" Tsai and Hartwig Anzt},
year = {2020},
eprint = {2011.08879},
archivePrefix = {arXiv},
primaryClass = {cs.DC},
url = {https://arxiv.org/abs/2011.08879}
}
Cojean, T., Tsai, Y.-H. "., & Anzt, H. (2020). Ginkgo - A Math Library designed for Platform Portability [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2011.08879
COJEAN T, TSAI YH", ANZT H. Ginkgo - A Math Library designed for Platform Portability[EB/OL]. (2020-11-17)[2026-11-29]. https://arxiv.org/abs/2011.08879.
초록
소프트웨어 지속가능성과 관련된 첫 번째 연상은 지속적 통합 (CI) 프레임워크의 존재, 단위 테스트, 통합 테스트, 그리고 엔드 투 엔드 테스트로 구성된 테스트 프레임워크의 존재, 그리고 소프트웨어 문서화의 존재일 수 있다. 그러나 과학 소프트웨어 제품의 공통적인 '죽음의 타격'이 무엇인지 물으면, 플랫폼과 성능의 이식성 부재가 자주 언급된다. 이러한 배경에서 우리는 플랫폼 이식성에 주안점을 두고, 새로운 하드웨어 아키텍처로 이식할 뿐만 아니라 우수한 성능을 달성할 수 있는 능력을 갖춘 Ginkgo 라이브러리를 설계했다. 본 논문에서는 알고리즘과 하드웨어 특이적 커널을 분리하여 고유한 하드웨어 실행자를 형성하는 Ginkgo 라이브러리의 설계 방식을 제시하며, NVIDIA, AMD, Intel GPU 를 위한 실행 백엔드를 추가하는 경험도 보고한다. 또한, 성능 이식성의 다양한 수준과 각 다른 하드웨어 백엔드에서 달성한 성능에 대해 논의한다.
The first associations to software sustainability might be the existence of a continuous integration (CI) framework; the existence of a testing framework composed of unit tests, integration tests, and end-to-end tests; and also the existence of software documentation. However, when asking what is a common deathblow for a scientific software product, it is often the lack of platform and performance portability. Against this background, we designed the Ginkgo library with the primary focus on platform portability and the ability to not only port to new hardware architectures, but also achieve good performance. In this paper we present the Ginkgo library design, radically separating algorithms from hardware-specific kernels forming the distinct hardware executors, and report our experience when adding execution backends for NVIDIA, AMD, and Intel GPUs. We also comment on the different levels of performance portability, and the performance we achieved on the distinct hardware backends.