Download presentation

Presentation is loading. Please wait.

Published byEvelyn Newton Modified over 2 years ago

1
Mesh-free numerical methods for large-scale engineering problems. Basics of GPU-based computing. D.Stevens, M.Lees, P. Orsini Supervisors: Prof. Henry Power, Herve Morvan January 2008

2
Outline: Meshless numerical methods using Radial Basis Functions (RBFs) Basic RBF interpolation Brief overview of the work done in our research group, under the direction of Prof. Henry Power Example results Large scale future problems GPU computing Introduction to the principle of using graphics processors (GPUs), as floating point co-processors Current state of GPU hardware and software Basic implementation strategy for numerical simulations

3
GABARDINE - EU project GABARDINE: Groundwater Artificial recharge Based on Alternative sources of wateR: aDvanced INtegrated technologies and managEment Aims to investigate the viability of artificial recharge in groundwater aquifers, and produce decision support mechanisms Partners include:Portugal, Germany, Greece, Spain, Belgium, Israel, Palestine University of Nottingham is developing numerical methods to handle: Phreatic aquifers (with associated moving surfaces) Transport processes Unsaturated zone problems (with nonlinear Governing equations)

4
RBF Interpolation Methods Apply the above at each of the N test locations: N unknowns …

5
Kansas Method (Diffusion operator) Collocating :

6
Hermitian Method Operators are also applied to basis functions: SYMMETRIC SYSTEM

7
RBF – Features and Drawbacks Partial derivatives are obtained cheaply and accurately by differentiating the (known) basis functions Leads to a highly flexible formulation allowing boundary operators to be implemented exactly and directly Once solution weights are obtained, a continuous solution can be reconstructed over the entire solution domain A densely populated linear system must be solved to obtain the solution weights Leads to high computational cost – O(N 2 ), and numerical conditioning issues with large systems, setting a practical limit of ~1000 points

8
Formulation: LHI method Hermitian Interpolation using solution values, and boundary operator(s) if present Initial value problem:

9
LHI method formulation cont… Form N systems, based on a local support: Hence, can reconstruct the solution in the vicinity of local system k via: where: H ~ 10 x 10 matrix

10
CV-RBF (Modified CV Scheme) Classic CV approach Polynomial interpolation to compute the flux CV-RBF approach Apply internal operator Apply Dirichlet operator Apply Boundary operator RBF interpolation to compute the flux

11
Simulation Workflow Dataset Generation Pre-Processing Simulation Post Processing GridGen RBF CVRBF Triangle Meshless TecPlot CAD Meshless RBF specific Our Code

12
Convection-Diffusion: Validation Both methods have been validated against a series of 1D and 3D linear and nonlinear advection-diffusion reaction problems, eg:

13
CV-RBF: Infiltration well + Pumping Well diameter: Soil properties: Pumping location: 25m from the infiltration well (height y=15m) Infiltration-Pumping rate:

14
CV-RBF: Infiltration well + Pumping 3D model: Mesh (60000 cells) and BC Boundary conditions Everywhere else

15
CV-RBF: Infiltration well + Pumping Piezometric head contour and streamlines at t=30h Maximum Displacements: plane at z=25m plane at y=29m Length scale: 100m

16
LHI: Infiltration model - Setup Infiltrate over 10m x 10m region at ground surface Infiltration pressure = 2m Zero-flux boundary at base (solid wall) Fixed pressure distribution at sides Initial pressure: Solving Richards equation:

17
LHI: Infiltration model – Soil properties Using Van-Genuchten soil representation: Saturated conductivity: Storativity:

18
LHI: Infiltration model - Results 11,585 points arranged in 17 layers Short runs: solution to 48 hours Long run: solution to 160 hours

19
Richards equation - First example Using the steady-state example given in Tracy (2006)* for the solution of Richards equation, with: On a domain: With: Top face All other faces * F.T.Tracy, Clean two- and three-dimensional analytical solutions of Richards equation for testing numerical solvers

20
Richards equation - First example With: (11 x 11 x 11) and (21 x 21 x 21) uniformly spaced points α = 0.164 N = 11N = 22 α = 0.328 N =11N = 22

21
Richards equation - First example (error analysis) Alpha = 0.164 11*11*111.72E-023.16E-02 21*21*213.52E-037.09E-03 6.62e-2 Alpha = 0.328 11*11*111.61E-023.20E-02 21*21*214.24E-038.57E-03 1.11 Alpha = 0.492 11*11*111.77E-022.43E-02 21*21*215.16E-037.26E-03 5.13 L2 error normMax error Finite Volume – max error Improvement factor: 706.6 129.5 9.34 Good improvement over finite volume results from Tracy paper, particularly with rapidly decaying K and θ functions Reasonable convergence rate, with increasing point density

22
Future work Future work will focus on large-scale problems, including: Regional scale models of real-world experiments in Portugal and Greece Country-scale models of aquifer pumping and seawater intrusion across Israel and Gaza The large problem size will require a parallel implementation for efficient solution – hence our interest in HPC and GPUs To our knowledge, we are the only group working on large-scale hydrology problems using meshless numerical techniques Practical implementation will require the parallelisation of large, sparsely-populated, iterative matrix solvers

23
GPU Computing: GPU: Graphics Processing Unit Originally designed to accelerate floating-point heavy calculations in computer games eg. Pixel shader effects (Lighting effects, reflection/refraction, other effects) Geometry setup (character meshes etc) Solid-body physics (…not yet widely adapted) Massively parallel architecture – currently up to 128 floating point processing units Recent hardware (from Nov 2006) and software (Feb 2007) advances have allowed programmable processing units (rather than units specialised for pixel or vertex processing) Has led to "General Purpose GPUs" - GPGPUs

24
GPU Computing: GPUs are extremely efficient at handling add-multiply instructions in small packets (usually the main computational cost in numerical simulations) FP capacity outstrips CPUs, in both theoretical capacity and efficiency (if properly implemented)

25
GPU Computing: Modern GPUs effectively work like a shared-memory cluster: GPUs have an extremely fast (~1000Mhz vs ~400Mhz), dedicated onboard memory Onboard memory sizes currently range up to 1.5Gb (in addition to system memory)

26
CUDA - BLAS and FFT libraries The CUDA toolkit is a C language development environment for CUDA- enabled GPUs. Two libraries implemented on top of CUDA: Basic Linear Algebra System (BLAS) Fast Fourier Transform (FFT) Pre-parallelised routines. Available Examples/Demos: Parallel bitonic sort Matrix multiplication Matrix transpose Performance profiling using timers Parallel prefix sum (scan) of large arrays Image convolution 1D DWT using Haar wavelet graphics interoperation examples CUDA BLAS and FFT examples CPU-GPU C and C++ code integration Binomial Option Pricing Black-Scholes Option Pricing Monte-Carlo Option Pricing Parallel Mersenne Twister Parallel Histogram Image Denoising Sobel Edge Detection Filter

27
TESLA - GPUs for HPC Deskside (2 GPUs 3GB) and Rackmount (4 GPUs 6GB) options With ~500Gflops per GPU, that is ~2 Teraflops per rack Deskside is listed at around $4200

28
GPU Computing – Some results Example: Multiplication of densely populated matrices O(N 3 ) algorithm… GPU specs: GPU modelProcessors GPU Clock speed Memory size Memory busCOST 8600GTS32675Mhz512Mb256bit~£75 8800GT112600Mhz512Mb256bit~£150 8800GTX128575Mhz768Mb320bit~£250 Matrices are broken down into vector portions, and sent to the GPU stream processors Use CUDA – nVidias C-based API for GPUs

29
Various CPUs vs GPU Note: Performance of dual-core and quad-core CPUs is approximated from an idealised parallelisation (ie. 100% efficiency)

30
More GPU propaganda: Dr. John Stone, Beckmann Institute of Advanced Technology, NAMD virus simulations: 110 CPU hours on SGI Itanium supercomputer => 47minutes with a single GPU Represents a 240-fold speedup Dr. Graham Pullan, University of Cambridge, CFD with turbine blades (LES and RANS models) 40x absolute speedup switching from a CPU cluster to a few GPUs Use 10 million cells on GPU, up from 500,000 on CPU cluster Good anecdotal evidence for improvement in real-world simulations is available from those who have switched to GPU computing:

31
Closing words GPU performance is advancing at a much faster rate than CPUs. This is expected to continue for some time yet With CUDA and BLAS, exploiting parallelism of the GPUs is in some cases easier than traditional MPI approaches Later this year: 2-3 times the performance of current hardware (over 1 TFLOP per card) Native 64bit capability More info: www.nvidia.com/tesla www.nvidia.com/cuda www.GPGPU.org

Similar presentations

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google