33
Multi-Scale Simulation of Multi-Phase Systems Using GPUs Multi-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences SC2010, Nov. 13-19, New Orleans

Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

Embed Size (px)

Citation preview

Page 1: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

Multi-Scale Simulation ofMulti-Phase Systems Using GPUs

Multi-Scale Simulation ofMulti-Phase Systems Using GPUs

Wei GeInstitute of Process EngineeringChinese Academy of Sciences

SC2010, Nov. 13-19, New Orleans

Page 2: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

New paradigm in HPC - CPU+GPUbest for multi-scale discrete simulation

molecule cluster particle emulsion reactor process environment

0θ0θ

Li, Ge & Kwauk, arXiv, 2009

Products

10-10~10-6m, 10-15~10-9s

Products

1~103 m, 1~106 s

huge scale gap

Simulation challenges:speed, accuracy, efficiency

Process engineering and supercomputing

Page 3: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

Softwareorganization

CPU

Macro

GPU

Long-RangeCorrelation

ParameterExchanges

LocalInteraction

Meso

Micro:

Physical structure

Consistency: Physics, Algorithm, Architecture

Hardwarearchitecture

Switch

Page 4: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

Generality vs Efficiency

Fully general

GeneralAlgorithmicFramework

forSpecial

Architecture

Mole-xsystems

Generality

Efficiency

Fully special

Page 5: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

Multi-scale discrete approaches

Micro-scale: fluctuating, conservativeMD, DSMC, LGA, PPM, …

Meso-scale: fluctuating, dissipativeDPD, FPM, DSPH, LBM, …

Macro-scale: smooth, dissipativeSPH, MPS, DEM, MaPPM, …

Page 6: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

Ge et al., Chin. Sci. Bull., 47:1172, 2002;

Tang, 2005 Doctor Thesis

General platform for discrete simulation

………PPM DPDSPH

Com

putation and Com

munication

DEM MaPPM

Particle

Potential Data

Structure

Link Cell+Neighbor List

Space Decomposion

Dynamic Load Balance

Communication Scheme

Organizer

Communicator

Assistant

Algorithm

…………

Boundary

MPI STL LokiAUTOCAD

CAD Drawing Conversion

Boundary Disposal

Particle Generation

Uniform Domain

Uniform Load

Preprocess

MD Particle Method

Data Partition

Configuration

Page 7: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

Velocity difference tangential stress viscosity

Density difference normal stress pressure

Bundled particle

(solids)

Free particle

(fluid)

Fixed particle(boundary)

Particle ContinuumExample: Direct simulation of gas-solid flow

Page 8: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

aii i

iai

ai

iaa Wm

rfDf ∑ ρ

=∇ r2|

aii i

i

ai

iaa Wm

rD∑ ρ

=Δ 22| ff W(r)

a

i

A straightforward formulation

Ge & Li, Chin. Sci. Bull., 46:1503, 2001; Ge & Li, Powder Tech., 137:99, 2003

Page 9: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

2000SGI Indigo2800Mflops

A fall oftwo particles

20K fluid particles

Page 10: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

2003

Compaq DL360 Cluster100Gflops Peak(~30th, Top100 China, 2002)

Fluidization of30 particles

100k fluid particles

Page 11: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

2005

1024 solid particles5M fluid particles

DeepComp 68005.3Tflops (14th, Top500, 2003.11)

Ma et al., Chem. Eng. Sci., 61:6878, 2006

Page 12: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

2008

118K solid particles400M fluid particles

Mole-9.7127Tflops (SP)

Host:126×HP8600CPU:252×Intel E5430 2.66GHzGPU:200×NV Tesla C870

+20×NV GeForce 9800×2Net.: Gigabit Ethernet (mesh+tree)Swt.: H3C 7506ROS: RedHat Linux 5.2Rreal:20~40Tflops (SP)

6.023e(23-9.7)flops

Xiong et al., Chem. Eng. Sci., 65:5356, 2010

Page 13: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

Rpeak SP:Rpeak DP:Linpack:Mflops/Watt:Memory:Storage:Data Comm.:Inst. Comm.:Occupied area:Weight:Max Power:System:

Monitor:Languages:

2Petaflops1Petaflops207.3Tflops (19th, Top500)431 (8th, Green500)17.2TB(RAM), 6.6TB(VRAM)76TB(Nastron)+320TB(HP)Mellanox QDR InfiniBandH3C Gigabit Ethernet150m2 (with internal cooling)12.6T (with internal cooling)600kW+200kW(cooling)CentOS 5.4, PBSGanglia, GPU monitorC,C++,CUDA ,OpenCL

2010Mole-8.5 (born on April 24)

Page 14: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

Tylersburg36D

PEX8647

GPU1

GPU2

PEX8647GPU3

IB

Tylersburg36D

PEX8647

PEX8647

GPU1

GPU2

GPU3

CPU0 CPU1DDR3 Mem*3

DDR3 Mem*3

DDR3 Mem*3

DDR3 Mem*3

DDR3 Mem*3

DDR3 Mem*3

Node layout of Mole-8.5

Bottleneck:DeMem PCIE IB

6xC2050 (Fermi)QDR IBTyan S7015

HDMem

2xE5520/70Fan

Page 15: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

Effect of the CPU-GPU ratio on performance

Medium-size applications Large-size applications

Linpack DEM30K DEM80K DEM500K

2C+1G

2C+2G

2C+6G

2C+2G

2C+1G

2C+6G

2C+2G

2C+1G

2C+6G

2C+2G

2C+1G

2C+6G

2C+2G

2C+1G

BestP/P ratio

BestP/P ratio

2C+6G

Perform

ance

Perform

ance

LBM20482

Page 16: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

1M solids & 1G fluid Ps @ 576 GPUs

Can you paint with all the colors of the wind?

display resolution1920x480

image resolution5898x1476

computational resolution

61440x15360

Xiong et al., 2010

Page 17: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

100K solids & 1G fluid Ps in 3D @ >1K GPUs

ICT-IPE visualization team against the display wallSept. 18, 2010, photo by Xiaowei Wang

Xiong et al., 2010

Page 18: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

New constitutive laws for continuum models

Ma et al., Chem. Eng. Sci.,

61:6878, 2006

Xiong et al.,2010

Drag force evolution

Slip velocity evolution

Page 19: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

Collective capacity:4.907Petaflops SP1.300Petaflops DP

IPE Mole-8.53Petaflops SP,1Petaflops DP

过程所

NV+AMD

1PSP

100T DP

高能所

AMD

200T SP

40TDP

金属所

NV

183TSP

15TDP

深圳先进院

NV

173TSP

14TDP

国家天文台

NV

160T SP

13TDP

地质地球所

NV+AMD

200TSP

17TDP

网络中心

NV+AMD

300TSP

39TDP

近代物理所

NV

202TSP

17TDP

紫金山台

NV

183TSP

15TDP

电工所

NV

101TSP

8TDP

中科大

NV

205TSP

17TDP

Distributed GPU-supercomputing in China

Page 20: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

Distributed GPU computing for oil recoveryDistributed clusters:Simulation of individual oil wells

Main cluster:Overall optimization and control

Li & Guo et al., 2010

Page 21: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

Oil recovery: fracture-cave type oil fields

Simulation80 GPUs

500x150mmonth

(in hours)

GeologicalStructure

20x20kmyears

PhysicalExperiment

0.5x0.8mdays

Li et al., 2009

Integrated systemdelivered to industry

Page 22: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

Permeability of rock samplesMulti-scale model: 7322 mD <1 hour

Experiment: 7220 mD 2 weeksTube network model: 8076 mD

Page 23: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

Diversity of GPU applications in CASAstrophysics (2): N-body, Image processingBiology & biochemistry: Genomics, Protein structureElectrical engineering: IC design evaluationGeophysics: Seismic data analysisHigh energy physics (2): Partial wave analysis, MDMaterial science: Lattice distortion and defectMechanics: CFD, multi-phase flowMedical instruments: CT image reconstruction

Page 24: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

Rotating drum: 9.6M solids, 270GPUs, 13.5*1.5m, 1/9 9.6M solids, 270GPUs, 13.5*1.5m, 1/9 realtimerealtime

Xu et al., submitted to Particuology, 2010

Page 25: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

MaximumVelocity: Minimum Wang et al., 2009

Page 26: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

Simulation of gas solid flow on multi-scales

Reactor: 9*40m3D EMMS

Section: 3*10m2DCFD+EMMS

Cell: 10*48cm2DDNS

1.2M cells96 GPUs

Quasi-realtime

~50xspeedup

100M grids432 GPUs

~3s~100x*

speedup

1M solids~1G fluids576 GPUs

30~50xspeedup

* one C2050 as compared with one core of Intel E5430 at 2.66GHz, both in single precision

Page 27: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

Industrial three-phase systems

27

Max. scale: 1600 GPUs

Page 28: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

28

3D simulation: bubble-particle in liquid0.1*0.1*0.15µm, bubble mean velocity 3m/s LJ/PP fluid at 60K, NVT ensemble7M particles, 2 GPUs15~50x speedup

3D simulation: gas-liquid phase transition0.1*0.05*0.1µm,

LJ/PP fluid at 60K, NVT ensemble1M particles, 2GPU

Micro-/Nano-fluidics:

Chen et al.,

NMF, 2008;

CSB, 2008

Page 29: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

Material: multi-scale structure in solar cellsFrom 10E-10m to 10E-3m>20 billion atoms1500GPU, 20x speedup16% peak performance

Hou & Xu, et al., 2009; 2010

Page 30: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

30Polymers

1392656 water3375 dipalmiteyl phosphatidyl cholineNPT ensemble15x speedup

1200 polyethylene chainsChain length:300 CH2NVT ensemble40x speedup Emulsions

Chemistry: complex and macro moleculesXu et al., Mol. Simu., 2010

Page 31: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

Molecular dynamics simulation of Swine flu

100 nm

H1N1

300M atom/radicals, >100ns, 1728GPUs Xu & Ren et al., 2010

Page 32: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

Prospect of virtual process engineering

CPU

CPU+GPU

CPU+XPU+GPU

macromeso

micro

micromacro meso

average

multi-scale discrete

pre-/post-processing

engineering design

CAD

realtime

virtual process

hardware applicationsoftware+simulator

Page 33: Multi-Scale Simulation of Multi-Phase Systems Using · PDF fileMulti-Scale Simulation of Multi-Phase Systems Using GPUs Wei Ge Institute of Process Engineering Chinese Academy of Sciences

This work is supported by:NSFC MOF MOST CASSinoPec PetroChina BaoSteel YeTechBHPb Alstom nVidia GE Unilever Shell

www.multiscalesci.orgwww.ipe.cas.cn/emms (under construction)

GroupEx2010, Shanxi, Photo by Xianfeng He

Thanks!