acat-2002 the evolutionary model of physics large-scale simulation on parallel dataflow architecture...

15
ACAT-2002 The Evolutionary Model of Physics Large-Scale Simulation on Parallel Dataflow Architecture Dr. Andrey V. Nikitin Dr. Ludmila I. Nikitina Lomonosov Moscow State University

Post on 19-Dec-2015

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ACAT-2002 The Evolutionary Model of Physics Large-Scale Simulation on Parallel Dataflow Architecture Dr. Andrey V. Nikitin Dr. Ludmila I. Nikitina Lomonosov

ACAT-2002

The Evolutionary Model of Physics Large-Scale Simulation on Parallel Dataflow Architecture

Dr. Andrey V. NikitinDr. Ludmila I. NikitinaLomonosov Moscow State University

Page 2: ACAT-2002 The Evolutionary Model of Physics Large-Scale Simulation on Parallel Dataflow Architecture Dr. Andrey V. Nikitin Dr. Ludmila I. Nikitina Lomonosov

ACAT-2002

Physics Large-Scale Simulation

Nonlinear 3D simulation of experimentally observed magnetohydrodynamic (MHD) burst in the DIII-D tokamak

Fast (~10-6 sec) processes Slow (~10-2 sec) processes 3D calculations Different scales for time and space

Page 3: ACAT-2002 The Evolutionary Model of Physics Large-Scale Simulation on Parallel Dataflow Architecture Dr. Andrey V. Nikitin Dr. Ludmila I. Nikitina Lomonosov

ACAT-2002

Physics Large-Scale Simulation

Model:

V – velocity

B – magnetic fieldP - pressure

VReBBPVVt

V

1),(

)(1bsm jBVReBV

t

B

OHQPPVPPVt

P

||||||||)1()(

0

P

dt

d

PB

BP

,||

PPP ||

,Vtdt

d

Page 4: ACAT-2002 The Evolutionary Model of Physics Large-Scale Simulation on Parallel Dataflow Architecture Dr. Andrey V. Nikitin Dr. Ludmila I. Nikitina Lomonosov

ACAT-2002

Physics Large-Scale Simulation

Numerical model:

straight field line coordinate system

)(

)( 1

max

min

max

)sin(),()cos(),(),,,(nM

nMm

N

n

smn

cmn nmtUnmtUtU

),,(

Page 5: ACAT-2002 The Evolutionary Model of Physics Large-Scale Simulation on Parallel Dataflow Architecture Dr. Andrey V. Nikitin Dr. Ludmila I. Nikitina Lomonosov

ACAT-2002

Physics Large-Scale Simulation

Requirements to the numerical simulation process:

Inversion of matrixes 106

Near real time Evolution of simulation process

Page 6: ACAT-2002 The Evolutionary Model of Physics Large-Scale Simulation on Parallel Dataflow Architecture Dr. Andrey V. Nikitin Dr. Ludmila I. Nikitina Lomonosov

ACAT-2002

1(P)

4(R)

2(P)

5(W)

3(W)

1

2

h = 3

d = (a + b) * c

<a,4,-> <b,4,->

<c,5,->

<+,5,->

<*,-,->

Dataflow model of calculations

Dataflow graph decomposition to layers

аГ

Page 7: ACAT-2002 The Evolutionary Model of Physics Large-Scale Simulation on Parallel Dataflow Architecture Dr. Andrey V. Nikitin Dr. Ludmila I. Nikitina Lomonosov

ACAT-2002

Dataflow model of calculations

buffer

SwitchS2

SwitchS1

PE

tokens

packets

tokens

tokens

Associativememorymodule

jM

Page 8: ACAT-2002 The Evolutionary Model of Physics Large-Scale Simulation on Parallel Dataflow Architecture Dr. Andrey V. Nikitin Dr. Ludmila I. Nikitina Lomonosov

ACAT-2002

Dataflow model of calculations

jij

jijjаji BM

FpMXГ

,

,, ),,,(

n

l

n

m

n

kjmilmklkаji xxssXГ

1 1 1, 2

1),(

),(),,(1

1 1

XГpXГ а

p

i

p

ijijа

pаp

ээа MpMXГT

MTpMXГE

),,,(),,,(

),,(max),,,(1

,,1

pXГpMXГT а

h

iji

pjа

Write time

Search time

Total time

Effectiveness

Page 9: ACAT-2002 The Evolutionary Model of Physics Large-Scale Simulation on Parallel Dataflow Architecture Dr. Andrey V. Nikitin Dr. Ludmila I. Nikitina Lomonosov

ACAT-2002

Dataflow model of calculations

Goal:

max),,,( pMXГE а

Page 10: ACAT-2002 The Evolutionary Model of Physics Large-Scale Simulation on Parallel Dataflow Architecture Dr. Andrey V. Nikitin Dr. Ludmila I. Nikitina Lomonosov

ACAT-2002

Genetic algorithm

1 2

9

7 8

12

5 6

11

3 4

10

14

15

13

1

2

3

Граф алгоритмаAlgorithm

1

0

0

1

0

0

1

0

0

0

1

0

0

1

0

0

0

1

0

0

1

1

0

0

1

0

0

0

1

0

0

1

0

0

1

0

0

1

0

0

0

1

0

0

1

Partition matrix

аГ

Chromosome x’ = 

1 1 2 2 2 2 3 3 1 1 2 2 1 1 1

Page 11: ACAT-2002 The Evolutionary Model of Physics Large-Scale Simulation on Parallel Dataflow Architecture Dr. Andrey V. Nikitin Dr. Ludmila I. Nikitina Lomonosov

ACAT-2002

MHD dataflow graph

*

+-

C0B0 F0 C1 B1 F1A1

()-1

* *

()-1

*

*

*

CN-1 FN-1AN-1

<2> <2>

*

+-

()-1

*

*

*

*<N-1> *<N-1>

BN-1

<N> <N> UN-1

*

- UN-2

<1> <1>

к U0

t+1

1,1,1ˆ t

U

2,1,1ˆ t

U

Pt

U,1,1ˆ

...

1,1

1

t

U1,1

max

t

NU...

2,1

1

t

U2,1

max

t

NU...

1,2,1ˆ t

U

2,2,1ˆ t

U

Pt

U,2,1ˆ

...

...

r = 1

r = 1,p = 1,...,P

r = 2

r = 2,p = 1,...,P

Rt

U,1

1

Rt

NU,1

max

...

1,,1ˆ Rt

U

2,,1ˆ Rt

U

PRt

U,,1ˆ

...

r = R

r = 2,p = 1,...,P

t

Ut

Ut1,1

2

t

U

2,1

2

t

U

Rt

U,1

2

Page 12: ACAT-2002 The Evolutionary Model of Physics Large-Scale Simulation on Parallel Dataflow Architecture Dr. Andrey V. Nikitin Dr. Ludmila I. Nikitina Lomonosov

ACAT-2002

Genetic algorithm

0% 0.01% 1% 2% 5% 10%

Сходимость относительной ошибки при различных вероятностях мутации

1501401301201101009080706050403020100

110

105

100

95

90

85

80

75

70

65

60

55

50

45

40

35

30

25

20

15

10

5

0

Convergence of GA (mutation)

Page 13: ACAT-2002 The Evolutionary Model of Physics Large-Scale Simulation on Parallel Dataflow Architecture Dr. Andrey V. Nikitin Dr. Ludmila I. Nikitina Lomonosov

ACAT-2002

Genetic algorithm vs. MK

ГА МК (0.01) МК (0.5)

Сравнение работы ГА и метода Монте-Карло

5045403530252015105

46

44

42

40

38

36

34

32

30

28

26

24

22

20

18

16

14

12

10

8

6

4

2

0

Convergence of GA and MK

Page 14: ACAT-2002 The Evolutionary Model of Physics Large-Scale Simulation on Parallel Dataflow Architecture Dr. Andrey V. Nikitin Dr. Ludmila I. Nikitina Lomonosov

ACAT-2002

Conclusion

GA was used to organize evolutionary computations of physics large-scale simulation on parallel dataflow architecture

GA allows to find optimal distribution of data by modules with high effectiveness

Code NFTC (1 iteration): SUN Ultra 400 Mhz/2 FPU ~ 50s, for dataflow ~ 4·10-2s.

Total time of typical computations:

Current (SUN Ultra Enterprise) – 30 hrs Dataflow (modules - 102,module capacity - 106,PE –

104/10 GFlops) – real time

Page 15: ACAT-2002 The Evolutionary Model of Physics Large-Scale Simulation on Parallel Dataflow Architecture Dr. Andrey V. Nikitin Dr. Ludmila I. Nikitina Lomonosov

ACAT-2002

Questions?