Yiannis Cotronis, Elias Konstantinidis, Maria A. Louka, Nikolaos M. Missirlis
{"title":"A comparison of CPU and GPU implementations for solving the Convection Diffusion equation using the local Modified SOR method","authors":"Yiannis Cotronis, Elias Konstantinidis, Maria A. Louka, Nikolaos M. Missirlis","doi":"10.1016/j.parco.2014.02.002","DOIUrl":null,"url":null,"abstract":"<div><p>In this paper we study a parallel form of the SOR method for the numerical solution of the Convection Diffusion equation suitable for GPUs using CUDA. To exploit the parallelism offered by GPUs we consider the fine grain parallelism model. This is achieved by considering the local relaxation version of SOR. More specifically, we use SOR with red-black ordering using two sets of parameters <span><math><mrow><msub><mrow><mi>ω</mi></mrow><mrow><mn>1</mn><mi>ij</mi></mrow></msub></mrow></math></span> and <span><math><mrow><msub><mrow><mi>ω</mi></mrow><mrow><mn>2</mn><mi>ij</mi></mrow></msub></mrow></math></span> for the 5 point stencil. The parameter <span><math><mrow><msub><mrow><mi>ω</mi></mrow><mrow><mn>1</mn><mi>ij</mi></mrow></msub></mrow></math></span> is associated with each red (<em>i</em> <!-->+<!--> <em>j</em> even) grid point <span><math><mrow><mo>(</mo><mi>i</mi><mtext>,</mtext><mi>j</mi><mo>)</mo></mrow></math></span>, whereas the parameter <span><math><mrow><msub><mrow><mi>ω</mi></mrow><mrow><mn>2</mn><mi>ij</mi></mrow></msub></mrow></math></span> is associated with each black <span><math><mrow><mo>(</mo><mi>i</mi><mo>+</mo><mi>j</mi></mrow></math></span> odd) grid point <span><math><mrow><mo>(</mo><mi>i</mi><mtext>,</mtext><mi>j</mi><mo>)</mo></mrow></math></span>. The use of a parameter for each grid point avoids the global communication required in the adaptive determination of the best value of <span><math><mrow><mi>ω</mi></mrow></math></span> and also increases the convergence rate of the SOR method (Varga, 1962) [38] and (Young, 1971) [41]. We present our strategy and the results of our effort to exploit the computational capabilities of GPUs under the CUDA environment. Additionally, two parallel CPU programs utilizing manual SSE2 (Streaming SIMD Extensions 2) and AVX (Advanced Vector Extensions) vectorization were developed as performance references. The optimizations applied on the GPU version were also considered for the CPU version. Significant performance improvement was achieved with all three developed GPU kernels differentiated by the degree of recomputations thus affecting the flops per element access ratio.</p></div>","PeriodicalId":54642,"journal":{"name":"Parallel Computing","volume":"40 7","pages":"Pages 173-185"},"PeriodicalIF":2.0000,"publicationDate":"2014-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.1016/j.parco.2014.02.002","citationCount":"14","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Parallel Computing","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0167819114000234","RegionNum":4,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"COMPUTER SCIENCE, THEORY & METHODS","Score":null,"Total":0}
引用次数: 14
Abstract
In this paper we study a parallel form of the SOR method for the numerical solution of the Convection Diffusion equation suitable for GPUs using CUDA. To exploit the parallelism offered by GPUs we consider the fine grain parallelism model. This is achieved by considering the local relaxation version of SOR. More specifically, we use SOR with red-black ordering using two sets of parameters and for the 5 point stencil. The parameter is associated with each red (i + j even) grid point , whereas the parameter is associated with each black odd) grid point . The use of a parameter for each grid point avoids the global communication required in the adaptive determination of the best value of and also increases the convergence rate of the SOR method (Varga, 1962) [38] and (Young, 1971) [41]. We present our strategy and the results of our effort to exploit the computational capabilities of GPUs under the CUDA environment. Additionally, two parallel CPU programs utilizing manual SSE2 (Streaming SIMD Extensions 2) and AVX (Advanced Vector Extensions) vectorization were developed as performance references. The optimizations applied on the GPU version were also considered for the CPU version. Significant performance improvement was achieved with all three developed GPU kernels differentiated by the degree of recomputations thus affecting the flops per element access ratio.
期刊介绍:
Parallel Computing is an international journal presenting the practical use of parallel computer systems, including high performance architecture, system software, programming systems and tools, and applications. Within this context the journal covers all aspects of high-end parallel computing from single homogeneous or heterogenous computing nodes to large-scale multi-node systems.
Parallel Computing features original research work and review articles as well as novel or illustrative accounts of application experience with (and techniques for) the use of parallel computers. We also welcome studies reproducing prior publications that either confirm or disprove prior published results.
Particular technical areas of interest include, but are not limited to:
-System software for parallel computer systems including programming languages (new languages as well as compilation techniques), operating systems (including middleware), and resource management (scheduling and load-balancing).
-Enabling software including debuggers, performance tools, and system and numeric libraries.
-General hardware (architecture) concepts, new technologies enabling the realization of such new concepts, and details of commercially available systems
-Software engineering and productivity as it relates to parallel computing
-Applications (including scientific computing, deep learning, machine learning) or tool case studies demonstrating novel ways to achieve parallelism
-Performance measurement results on state-of-the-art systems
-Approaches to effectively utilize large-scale parallel computing including new algorithms or algorithm analysis with demonstrated relevance to real applications using existing or next generation parallel computer architectures.
-Parallel I/O systems both hardware and software
-Networking technology for support of high-speed computing demonstrating the impact of high-speed computation on parallel applications