Explore chapters and articles related to this topic
Computationally efficient GPU based NS solver for two dimensional high-speed inviscid and viscous compressible flows
Published in Engineering Applications of Computational Fluid Mechanics, 2023
Muhammad Naveed Akhtar, Kamran Rasheed Qureshi, Muhammad Hanif Durad, Anila Usman, Syed Muhammad Mohsin, Band Shahab, Amirhosein Mosavi
In this study, multiple 2D arrays are grouped to be referenced by a single 3D surface pointer and indexed accordingly. This technique is explained in Figures 1 and 2. All 2D arrays needed for the problem are packed into a single 3D array and a surface pointer references this common block. The size of the 3D array is given by X×Y×N, where X and Y are the grid dimensions in a problem and N is the number of 2D arrays packed in the collection. CUDA Surfaces use a 32-bit computing architecture by default. To make it suitable for double-precision computations, 2 consecutive 32-bit memory locations have been grouped to preserve the efficiency of surface pointers while taking advantage/accuracy of 64-bit computations.