OpenCLIPER:一个用于异构设备上降低开销的医学图像处理和重建的OpenCL-based C++框架
OpenCLIPER: an OpenCL-based C++ Framework for Overhead-Reduced Medical Image Processing and Reconstruction on Heterogeneous Devices
摘要:
医学图像处理常常受到所涉及算法的计算成本的限制。虽然专用计算设备(特别是GPU)的存在确实提供了显着的效率提升,但它们在内务任务(设备选择和初始化,数据流,与CPU的同步等)方面具有额外的使用成本,这可能会阻碍开发人员使用它们。本文介绍了一种基于OpenCL的框架,能够无缝地处理专用计算设备,并允许开发人员专注于图像处理任务。该框架自动处理设备发现和初始化、设备和文件系统之间的数据传输以及内核加载和编译。数据结构只需要独立于计算设备定义一次;因此,代码对于每个设备(包括主机CPU)都是唯一的。固定内存/缓冲区映射用于实现数据传输的最大性能。本文中包含的代码片段显示了计算设备如何几乎立即且毫不费力地提供给用户算法,因此他们可以专注于生产性工作。设备选择和初始化、数据加载和流式传输以及内核编译所需的代码非常少,而且系统化。算法可以被认为是数学运算符(称为过程),具有输入,输出和参数,并且它们可以轻松有效地一个接一个地链接。同样为了提高效率,进程可以将其初始化工作从其核心工作负载中分离出来,因此进程链和循环不会带来性能损失。算法代码与目标器械类型无关。
英文摘要:
Medical image processing is often limited by the computational cost of the involved algorithms. Whereas dedicated computing devices (GPUs in particular) exist and do provide significant efficiency boosts, they have an extra cost of use in terms of housekeeping tasks (device selection and initialization, data streaming, synchronization with the CPU and others), which may hinder developers from using them. This paper describes an OpenCL-based framework that is capable of handling dedicated computing devices seamlessly and that allows the developer to concentrate on image processing tasks. The framework handles automatically device discovery and initialization, data transfers to and from the device and the file system and kernel loading and compiling. Data structures need to be defined only once independently of the computing device; code is unique, consequently, for every device, including the host CPU. Pinned memory/buffer mapping is used to achieve maximum performance in data transfers. Code fragments included in the paper show how the computing device is almost immediately and effortlessly available to the users algorithms, so they can focus on productive work. Code required for device selection and initialization, data loading and streaming and kernel compilation is minimal and systematic. Algorithms can be thought of as mathematical operators (called processes), with input, output and parameters, and they may be chained one after another easily and efficiently. Also for efficiency, processes can have their initialization work split from their core workload, so process chains and loops do not incur in performance penalties. Algorithm code is independent of the device type targeted.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。