图像与数据缓冲区的功效:利用OpenCL优化科学可视化的交互式应用
Efficacy of Images Versus Data Buffers: Optimizing Interactive Applications Utilizing OpenCL for Scientific Visualization
摘要:
本文探讨了一种算法,使用双OpenCL图像缓冲区,以优化数据流的合奏处理和可视化。使用图像缓冲区是因为它们允许缓存内存访问,而不像更常用的简单数据缓冲区。OpenCL图像对象的性能通过允许上传和映射到一个缓冲区与映射和/或处理另一个缓冲区中的数据同时发生而得到改进。该技术应用于一个交互式应用程序中,允许将多个洪水范围图组合成单个图像,并允许用户实时的改变输入图像集。通过改变输入图像的维度和迭代次数来测试该技术的效率;计算与输入图像的数量成线性比例,使用~4k图像获得最佳结果。执行测试以确定数据可以从数据缓冲器移动到图像缓冲器的速率,检查大范围的可能的图像缓冲器尺寸。其他测试检查了具有不同图像和缓冲区变体的内核运行时。该算法的局限性和可能的应用进行了讨论。
英文摘要:
This paper examines an algorithm using dual OpenCL image buffers to optimize data streaming for ensemble processing and visualization. Image buffers were utilized because they allow cached memory access, unlike simple data buffers, which are more commonly used. OpenCL image object performance was improved by allowing upload and mapping into one buffer to occur concurrently with mapping and/or processing of data in another buffer. This technique was applied in an interactive application allowing multiple flood extent maps to be combined into a single image, and allowing users to vary input image sets in real time. The efficiency of this technique was tested by varying both dimensions of input images and number of iterations; computation scaled linearly with number of input images, with best results achieved using ~4k images. Tests were performed to determine the rate at which data could be moved from data buffers to image buffers, examining a large range of possible image buffer dimensions. Additional tests examined kernel runtimes with different image and buffer variants. Limitations of the algorithm and possible applications are discussed.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。