수동적 메쉬리스 방법에서 중복된 쌍 상호작용 수 감소
Reducing the number of redundant pair-wise interactions in hydrodynamic meshless methods
Reducing the number of redundant pair-wise interactions in hydrodynamic meshless methods
@misc{asensio2020reducing,
title = {Reducing the number of redundant pair-wise interactions in hydrodynamic meshless methods},
author = {Isaac Alonso Asensio and Claudio Dalla Vecchia},
year = {2020},
eprint = {2011.01227},
archivePrefix = {arXiv},
primaryClass = {astro-ph.IM},
url = {https://arxiv.org/abs/2011.01227}
}
Asensio, I. A., & Vecchia, C. D. (2020). Reducing the number of redundant pair-wise interactions in hydrodynamic meshless methods [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2011.01227
ASENSIO IA, VECCHIA CD. Reducing the number of redundant pair-wise interactions in hydrodynamic meshless methods[EB/OL]. (2020-11-02)[2026-11-29]. https://arxiv.org/abs/2011.01227.
초록
이웃 해상도 요소 (입자) 와의 물리적 상호작용을 계산하는 널리 사용되는 라그랑지안 수치 코드들은 쌍입자 간 상호작용 계산을 중복하여 수행한다. 우리는 중복 계산을 줄이는 알고리즘을 개발하였다. 이 알고리즘은 이미 계산된 상호작용 및 충돌을 표시하기 위해 해시 함수를 활용하며, 해싱 결과는 두 개의 캐시에 저장된다. 캐시 메모리 사용량을 제한하지 않으면 모든 중복 계산을 피할 수 있으며, 성능 향상 인자는 약 2 배에 달한다. 캐시 크기 (비트) 를 일반적인 이웃 입자 수 (70 개) 의 두 배로 제한할 경우, 중복 계산을 약 70% 피할 수 있어 성능 향상이 약 35%에 이른다.
Widely used Lagrangian numerical codes that compute the physical interaction with neighbouring resolution elements (particles), duplicate the calculation of the interaction between pairs of particles. We developed an algorithm that reduces the number of redundant calculations. The algorithm makes use of a hash function to flag already computed interactions and eventual collisions. The result of the hashing is stored in two caches. Without limiting the cache memory usage, all duplicated calculations can be avoided, achieving the speed-up of a factor on two. We show that, limiting the cache size (in bits) to double the typical number of neighbouring particles, 70 per cent of the redundant calculations can be avoided, yielding a speed-up of almost 35 per cent.