计算机科学 ›› 2013, Vol. 40 ›› Issue (2): 8-11.

• 综述 • 上一篇    下一篇

基于OpenMP的两个地学基础空间分析算法的并行实现及优化

朱效民,潘景山,孙占全,顾卫东   

  1. (山东省计算中心 济南250014);(国家超算济南中心 济南250101);(山东省计算机网络重点实验室 济南250014)
  • 出版日期:2018-11-16 发布日期:2018-11-16

Parallel Implementation and Optimization of Two Basic Geo-Spatial-Analysis Algorithms Based on OpenMP

  • Online:2018-11-16 Published:2018-11-16

摘要: 研究了两个基础空间分析算法(大量线段求交、点面叠加)的实现方法,并基于单机多核环境,利用()pcnMP实现了并行算法。通过分析并行算法,得到了无法取得线性加速比的原因,即负载不均衡,内存管理采用全局方法,仍然是“串行”的。基于此,通过对数据进行有效的排序并利用()pcnMP的动态调度方式进行调度;改进了现有的并发内存分配技术,并将其用于并行算法的内存管理。利用以上方法对并行算法进行了优化,测试表明,优化后的算法具有较为理想的近线性加速比,单机四核环境下,每个核心的计算效率不低于80%。

关键词: 空间分析,求交,点面叠加,并发内存分配

Abstract: This paper introduced research on the methods for two basic geo-spatial-analysis algorithms; getting intersection points for large amounts of segments and point polygon-overlay, and we implemented the two algorithms on the shared memory multi-core environment based on OpenMP. We analyzed the reason why we don't get linear speedup,and got that it is because of unbalanced load and serial memory management method. Then we sorted the input data and adopted the dynamic scheduling of OpenMP. Also, we adopted and improved the current parallel memory allocating technique to manage the memory for parallel algorithms. Based on the two methods above, we improved the algorithms.The tests show that the improved method can reach nearly linear speedup, and the efficiency of each core in a four-core node is above 80%.

Key words: Spatial analysis, Intersection, Point polygon-overlay, Parallel memory allocate

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!