arrow
返回

GPU-accelerated adjoint algorithmic differentiation

delete2016-03-01
delete16
delete
OA
AI
F
Felix Gremse *
A
Andreas Höfter
L
Lukas Razik
F
Fabian Kießling
U
Uwe Naumann
DOI:10.1016/j.cpc.2015.10.027delete
delete原文链接
delete分享
delete收藏
查看原文
摘要

摘要

En 中文
Many scientific problems such as classifier training or medical image reconstruction can be expressed as minimization of differentiable real-valued cost functions and solved with iterative gradient-based methods. Adjoint algorithmic differentiation (AAD) enables automated computation of gradients of such cost functions implemented as computer programs. To backpropagate adjoint derivatives, excessive memory is potentially required to store the intermediate partial derivatives on a dedicated data structure, referred to as the tape. Parallelization is difficult because threads need to synchronize their accesses during taping and backpropagation. This situation is aggravated for many-core architectures, such as Graphics Processing Units (GPUs), because of the large number of light-weight threads and the limited memory size in general as well as per thread. We show how these limitations can be mediated if the cost function is expressed using GPU-accelerated vector and matrix operations which are recognized as intrinsic functions by our AAD software. We compare this approach with naive and vectorized implementations for CPUs. We use four increasingly complex cost functions to evaluate the performance with respect to memory consumption and gradient computation times. Using vectorization, CPU and GPU memory consumption could be substantially reduced compared to the naive reference implementation, in some cases even by an order of complexity. The vectorization allowed usage of optimized parallel libraries during forward and reverse passes which resulted in high speedups for the vectorized CPU version compared to the naive reference implementation. The GPU version achieved an additional speedup of 7.5 +/- 4.4, showing that the processing power of GPUs can be utilized for AAD using this concept. Furthermore, we show how this software can be systematically extended for more complex problems such as nonlinear absorption reconstruction for fluorescence-mediated tomography. Program summary Program title: AD-GPU Catalogue identifier: AEYX_v1_0 Program summary URL: http://cpc.cs.qub.ac.uk/summaries/AEYX_v1_0.html Program obtainable from: CPC Program Library, Queen's University, Belfast, N. Ireland Licensing provisions: Standard CPC licence, http://cpc.cs.qub.ac.uk/licence/licence.html No. of lines in distributed program, including test data, etc.: 16715 No. of bytes in distributed program, including test data, etc.: 143683 Distribution format: tar.gz Programming language: C++ and CUDA. Computer: Any computer with a compatible C++ compiler and a GPU with CUDA capability 3.0 or higher. Operating system: Windows 7 or Linux. RAM: 16 Gbyte Classification: 4.9, 4.12, 6.1, 6.5. External routines: CUDA 6.5, Intel MKL (optional) and routines from BLAS, LAPACK and CUBLAS Nature of problem: Gradients are required for many optimization problems, e.g. classifier training or nonlinear image reconstruction. Often, the function, of which the gradient is required, can be implemented as a computer program. Then, algorithmic differentiation methods can be used to compute the gradient. Depending on the approach this may result in excessive requirements of computational resources, i.e. memory and arithmetic computations. GPUs provide massive computational resources but require special considerations to distribute the workload onto many light-weight threads. Solution method: Adjoint algorithmic differentiation allows efficient computation of gradients of cost functions given as computer programs. The gradient can be theoretically computed using a similar amount of arithmetic operations as one function evaluation. Optimal usage of parallel processors and limited memory is a major challenge which can be mediated by the use of vectorization. Restrictions: To use the GPU-accelerated adjoint algorithmic differentiation method, the cost function must be implemented using the provided AD-GPU intrinsics for matrix and vector operations. Unusual features: GPU-acceleration. Additional comments: The code uses some features of C++11, e.g. std::shared ptr. Alternatively, the boost library can be used. Running time: The time to run the example program is a few minutes or up to a few hours to reproduce the performance measurements. (C) 2015 The Authors. Published by Elsevier B.V.
Keyword:
Adjoint algorithmic differentiation
GPU programming
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

期刊

Computer Physics Communications 封面图
Computer Physics Communications
IF:
3.4
论文数:
1.2W
被引数:
3.7W

机构

R
RWTH Aachen University
学者数:
3.5W
论文数: 2.6W
被引数: 3.6W
引用论文

引用论文

ZnO Nanowires from Nanopillars: Influence of Growth Time
err2009-11-01
err0
PREAI
errP. Sangpour; M. Roozbehi; O. Akhavan; A. Moshfegh
err分享
err收藏
Studies of enantiomerization of chiral 3,4-dihydro-1,2,4-benzothiadiazine 1,1-dioxide type compounds
err2001-01-01
err0
PREAI
errGiuseppe Cannazza; Daniela Braghiroli; Annalisa Tait; Mario Baraldi; Carlo Parenti; Wolfgang Lindner
err分享
err收藏
Noninvasive Optical Imaging of Nanomedicine Biodistribution纳米医学生物分布的无创光学成像
err2012-10-24
err104
errOAAI
errKunjachan, Sijumon; Gremse, Felix; Theek, Benjamin; Koczera, Patrick; Pola, Robert; Pechar, Michal; Etrych, Tomas; Ulbrich, Karel; Storm, Gert; Kiessling, Fabian; Lammers, Twan
err分享
err收藏
err分享
err收藏
GPU-ACCELERATED SPARSE MATRIX-MATRIX MULTIPLICATION BY ITERATIVE ROW MERGING
err2015-01-01
err71
PREAI
errGremse, Felix; Hoefter, Andreas; Schwen, Lars Ole; Kiessling, Fabian; Naumann, Uwe
err分享
err收藏
Absorption Reconstruction Improves Biodistribution Assessment of Fluorescent Nanoprobes Using Hybrid Fluorescence-mediated Tomography使用混合荧光介导的断层扫描,吸收重建可改善荧光纳米探针的生物分布评估
err2014-01-01
err45
errOAAI
errGremse, Felix; Theek, Benjamin; Kunjachan, Sijumon; Lederle, Wiltrud; Pardo, Alessa; Barth, Stefan; Lammers, Twan; Naumann, Uwe; Kiessling, Fabian
err分享
err收藏
Fundus flavimaculatus et néovascularisation choroïdienne
err2006-02-01
err0
PREAI
errD. Pawlak; E. Souied; G. Mimoun; M. Papp-Pawlak; G. Coscas; G. Soubrane
err分享
err收藏
Reverse differentiation sind the inverse diffusion problem逆扩散问题的逆微分
err1997-06-01
err35
PREAI
errDavies, AJ; Christianson, DB; Dixon, LCW; Roy, R; vanderZee, P
err分享
err收藏
学者 查看更多内容