GAME OF LIFE - PowerPoint PPT Presentation

1 / 24
About This Presentation
Title:

GAME OF LIFE

Description:

???????? ??? ???? ????????? ?? Jacobi. ???? ????? ???? ???? ????? ????? ??????? ... application programmers. ?????? ???? ?? ???? ???????? (threads ) ... – PowerPoint PPT presentation

Number of Views:27
Avg rating:3.0/5.0
Slides: 25
Provided by: conf200
Category:
Tags: game | life | application

less

Transcript and Presenter's Notes

Title: GAME OF LIFE


1
GAME OF LIFE
Load Balancing
2
???? ????????
????? ?????? ????? ????? ????? ?????? ??????
?????.
3
???? ??????
?????? ????? Game of Life ????????
??? ???? ????????? ?? Jacobi ???? ????? ????
???? ????? ????? ??????? ????? ?????? ?????
  1. Open MP
  2. MPI master and slaves
  3. MPI round robin division
  4. MPI row division
  5. MPI column division
  6. MPI Cartesian topology

4
???? ????? Game of Life
????? ????? ?"? ????????? john conway ???? 1970
?????? ? .cellular automata ???? ?????
?????????? , ?? ?????? ???? ?????? ??? ???? . ???
????? ???? ?? ????? ??? ???? ????? ??????? , ???
?? ?? ???? ????? ???????? ???? ???? ?????? ?????
?? ??? ????? ?????? ?????
5
???? ?????
  • ??? ?? ??????? 8 "???? ?????" ??????? ?? ??? ???
    ???????? ????.
  • ?? ???????? ??? ????? ?? ??? ??? ??? ????
    ???????.
  • ?? ???????? ??? ????? ????? ????? ???? ??????
    ???.
  • ?? ???????? ??? ???? ?? ????? ????? ????? .
  • ??? ?? ??? ??? ????? ????? ???? ????????.

6
?? ???????? ??? ????? ?? ??? ??? ??? ???? ???????.
7
?? ???????? ??? ???? ?? ????? ????? ????? .
8
?? ???????? ??? ????? ????? ????? ???? ?????? ???.
9
??? ?? ??? ??? ????? ????? ???? ????????.
10
???? ????????? ?? Jacobi
  • ?????? ?? ???? ??? ?????? ?? ??????
  • ???? ??? ?? ???? (x,y) ??????? ?? ?????? ?????.
  • ???? ?? ?? ?????? ??? 1 ????? ?? ?? ?? ?????? 0.
  • ?????? ????? ?? ?? ?? ????? ????? ????
  • ????? ???? ????? ?????? ????? ???????? ??????.
  • ????? ?????? ?????? ??? ??? ???????? ????.

11
????? ?????? ??????
12
Open MP

A set of compiler directives and library routines
for parallel application programmers
?????? ???? ?? ???? ???????? (threads ) ?????
????? ??????? ?????? ????? ??????? , ??? ?????
??????. ?????? ????? ?? ??????? ??????? ?? ????
??????? ???????
13
MPI master and slaves
????? ??? master ) ) ???? ?? ??????? ?? ????
??????. ?master ???? ?? ??????? ??? ??????? (
??????? ???? ??? ) ????? ??? ????? ( slave ) ???
?????? . ????? ?? ??????? ???? ?? slave ?? ??
??????? ?????? ?? ???? ???? , ?????? ? master.
14
MPI round robin division
??????? ????? ???????. ????? ??????? ????????
????? ????? ?????? ???? ??? ????? ????? ?????
??????. ???? ??????? 2 ( m -1) m ????
??????? ???????
15
MPI row division
??????? ????? ??????. ?? ????? ???? ????? ?????
????? ??????. ???? ??????? 2 ( p -1) p ????
????????
16
MPI column division
??????? ????? ???????. ?? ????? ???? ????? ?????
?????? ??????. ???? ??????? 2 ( p -1) p
???? ????????
17
MPI Cartesian topology
????? ???? ??????? ?????? ?????? ?????? ??????
????? ?????? (grid) . ??-??? ????? ?? ????? ?????
????? ????? ????? ????? ?? ??????? ??????? ??
????? ????? ??????. ????? ?? ??? ?????? ????? ??
????? ??????? ?????? ????? ?????? ????? ?????
?????.
18
???????? ???????
19
Speed up
Cost
Efficiency
20
?????? ???????
?????? ?? ??? ????? ??? ???? ???? ??????
???????. .1 ???? ??????? ????????? ????????
??????. .2 ??? ?????? ??????? ??? ???????? ,
????? ?????? ???? ??????????? ?? ??????.
21
???? ??? ???? ????? ??????/???????
Open MP
?????????? ?? ???? ??? ?????? ??????? ??? ??????
, ???? ????? ???? ???? ?? ?????? ???? ??? ???
???? ???? ???? ?? ???? ?? ??????.
22
???? ??? ???? ????? ??????/???????
MPI
???? ????? ???????? ???? ????? ???????. ?. ????
????? ???? ????? ????? ????cartesian topology
. ?. ???? ????? ????? ????? ????? ???? round
robin division . ?. ???? ?????? ???? ??? ?????
???? ??????? ?? ???? ?? ????? ??? ?????
?????? ?? ???? ?? ???? ??? ????.
23
????? ??????
  1. ????? ???? ???????? .
  2. ????? ???????? ??? ??????? ????? ????? ,????
    ???? ???? ????? ??????.
  3. ????? ??? deadlock ????? ????? ????? ???
    ????????.

24
??????? ???????
  • ????? ???? ???????? - ????? ???? ?????? ?? ?????
    ?????? ???? ????? ???????? ???????? ??????.????
    ??? ????? ??????? ????? ??? ???? ????? ?????.
  • ????? ??????? ????? - ????? ????? ????? ?????.
  • ????? ??? deadlock - ????? ??????
    MPI_sendrecv()
Write a Comment
User Comments (0)
About PowerShow.com