Title: Modeling with Parallel DEVS
1Modeling with Parallel DEVS
2Serialization in DEVS models
- Select function
- Implicit serialization of parallel models
- E-DEVS internal transition first, external
transition after - Inadequate representation of DEVS models
with parallel components
3Parallel DEVS Atomic Models
DEVS lt Xb, S, Yb, dint , dext , dconf , ta, l gt
4 Parallel DEVS Atomic models
DEVS lt Xb, S, Yb, dint , dext , dconf , ta, l gt
5 Parallel DEVS Atomic models
DEVS lt Xb, S, Yb, dint , dext , dconf , ta, l gt
6 Parallel DEVS Atomic models
DEVS lt Xb, S, Yb, dint , dext , dconf , ta, l gt
7Parallel-DEVS Coupled models
- Components
- Couplings
- Internal
- External Inputs
- External Outputs
8Simulation mechanism
- Simulation advanced through message exchange
- Synchronization messages
- Type Action
- ( _at_, t ) Output execution
- ( , t ) State transition
- ( done , t ) End of action
- Content messages
- ( y , t ) Output event
- ( q , t ) External event
9Simulator
- Drives atomic models
- State
- tN time of next transition
- tL time of last transition
- message bag
- Upon receiving Do
- ( _at_, t ) y l (s) send ( y, t )
- (q, t) Add q to message bag
- ( , t )
- if t lt tN s dext tN ta(s) tL t
- if t tN ? bag ? s dint tN ta(s)
tL t - if t tN ? bag ? ? s dconf tN ta(s)
tL t
10Coordinator
- Coordinates processors activities
Coordinator
tN 10
tN 10
tN 20
11Coordinator
Coordinator
tN 10
tN 10
tN 20
12Coordinator
Coordinator
tN 20
tN 30
tN 15
13Parallel CD
- A tool to execute Parallel DEVS and Parallel
Cell-DEVS models in parallel/distributed
environments - Layered architecture based on Warped
Parallel CD
Warped
MPI (Message Passing Interface)
14Parallel - DEVS simulation
- Independent of the modelling technique
- Different simulators can be applied according to
the needs. - Examples of existing simulators
- Hierarchical
- Flat
- Centralized
- Distributed
- Real-Time
15Parallel DEVS simulation
- Processors
- Simulator Atomic model
- Coordinator Coupled model
- Processor hierarchy model hierarchy
16CD Parallel simulator
- Model partitioned among available CPUs
- Atomic models
- Each atomic model assigned to a CPU
- Coupled models
- Coordinator is placed on each CPU where there is
a component
17Parallel simulation mechanism
CPU 1
CPU 2
Slave coord.
Master coord.
18Parallel simulation mechanism
CPU 1
CPU 2
Slave coord.
Master coord.
19Extensions to CD
20Extensions (cont.)
21Partition Files
22- RADS (Carleton University)
- Alpha network and Gamma network
23Simulation Results
- Generator- Processor-Transducer
- Multiple instances (12, 48 and 96)
- 1 to 12 CPUs (different machines)
24Results
Generator - Processor - Transducer
25Results
- Heat diffusion model
- 100 x 100 surface
- Each cell holds a temperature value
- Temperature is update periodically
- Partitions
- 1, 2, 4 and 8 CPUs
- Quantization
- Quantum sizes
- 0 0,001 0,01 y 0,1
10000
26Results
- Heat diffusion - Linux cluster
27Results
- Heat diffusion - 4 processors SMP