计算机应用 ›› 2012, Vol. 32 ›› Issue (07): 1939-1942.DOI: 10.3724/SP.J.1087.2012.01939

• 先进计算 • 上一篇    下一篇

基于GPU的光子映射并行化算法

贺怀清,孙希栋   

  1. 中国民航大学 计算机科学与技术学院,天津300300
  • 收稿日期:2012-01-09 修回日期:2012-03-14 发布日期:2012-07-05 出版日期:2012-07-01
  • 通讯作者: 孙希栋
  • 作者简介:贺怀清(1969-),女,吉林白山人,教授,博士,CCF会员,主要研究方向:图形图像与可视化、民航相关信息可视化分析、民航简化商务相关标准、语音识别;孙希栋(1986-),男,河北唐山人,硕士研究生,主要研究方向:图形图像与可视化。
  • 基金资助:

    国家自然科学基金资助项目(60774041);天津市应用基础及前沿技术研究计划项目(10JCYBJC00900);中央高校基本科研业务费中国民航大学专项(ZXH2009C001)

Photon mapping parallel algorithm based on graphic processing unit

HE Huai-qing,SUN Xi-dong   

  1. School of Computer Science and Technology, Civil Aviation University of China, Tianjin 300300, China
  • Received:2012-01-09 Revised:2012-03-14 Online:2012-07-05 Published:2012-07-01
  • Contact: SUN Xi-dong

摘要: 针对串行情况下光子映射算法速度慢的问题,对光子映射算法并行化进行可行性分析,充分利用图像处理器(GPU)的统一设备计算架构(CUDA)的并行和计算能力,实现光子映射算法的并行化。同时针对算法中光子发射追踪阶段生成GPU线程数与光子数相同的方法的不足以及平均分配方法所造成的资源浪费等,提出线程之间协同工作的方法并采用动态平衡处理,使光子渲染速度提升了将近一倍。实验结果证明了多线程间协同工作及动态平衡相结合方法的有效性。

关键词: 光子映射, 并行, 渲染, 统一设备计算架构, 图像处理器

Abstract: To solve the slow rendering speed issue of serial photon mapping algorithm, the feasibility of parallelizing the algorithm was analyzed. The parallelism and computing capability of the Compute Unified Device Architecture (CUDA) on Graphic Processing Unit (GPU) were fully utilized to realize a parallel photon mapping algorithm. As for the shortage of generating the same number of GPU threads as the photon number in the photon emission and tracing step, and the waste of resources of the average allocation method, a new cooperation way that all the threads be processed with dynamic balance was then proposed. The new method nearly doubled the rendering speed. The experimental results prove the effectiveness of the proposed method.

Key words: photon mapping, parallel, rendering, Compute Unified Device Architecture (CUDA), Graphic Processing Unit (GPU)

中图分类号: