Strategy and algorithms for the parallel solution of the nearest neighborhood problem in shared-memory processors

Engineering with Computers - Tập 38 - Trang 1669-1679 - 2021
Santiago Tapia-Fernández1, Pablo Hiroshi Alonso-Miyazaki1, Ignacio Romero2,3, Angel García-Beltrán1
1Department of Electrical Engineering-ETSII, Universidad Politécnica de Madrid (UPM), Madrid, Spain
2Department of Mechanical Engineering-ETSII, Universidad Politécnica de Madrid (UPM), Madrid, Spain
3IMDEA Materials Institute, Getafe, Spain

Tóm tắt

The neighborhood problem appears in many applications of computational geometry, computational mechanics, etc. In all these situations, the main requirement for a competitive implementation is performance, which can only be attained in modern hardware by exploiting parallelism. However, whereas the performance of serial algorithms is fairly predictable, that of parallel methods depends on delicate issues that have a huge impact (cache memory, cache misses, memory alignment, etc.), but are not easy to control. Even if there is not a simple approach to deal with these factors in shared-memory architectures, it is quite convenient to program parallel algorithms where the data are segregated on a per-thread basis. With this objective in mind, we propose a strategy to develop parallel algorithms based on a two-level design, and apply it to efficiently solve the nearest neighborhood problem. At a higher level, the proposed methods orchestrate the parallel algorithm and split the space into cells stored in a hash table; at the lower level, our methods hold serial search algorithms that are completely agnostic to the high-level counterpart. Using this strategy, we have developed a library combining different serial and parallel algorithms, optimized them, and assessed their performance. The analysis carried out allows to better understand the main bottlenecks in the algorithmic solution of the nearest neighborhood problem and come out with very fast implementations that improve existing available software.

Tài liệu tham khảo