- #1
zak100
- 462
- 11
- Homework Statement
- I am trying to calculate the time of all-to-all broadcast for balanced binary tree (BBT) but my equation is not correct. I need some help in correction of my equation
- Relevant Equations
- 1) Required Time Equation = (t_s + t_w*m*p/2)logp
2)Time for an exchange of two m-word messages between any two nodes connected by bidirectional channels is:
t_s + t_w*m*k
if the communication channel (or a part of it) is shared by k simultaneous messages.
Hi,
I have provided a procedure for broadcast for BBT at the following link:
https://cs.stackexchange.com/questions/106631/all-to-all-broadcast-on-a-balanced-binary-tree
But I am not getting the correct time as asked in the question:
Required Timing equation is: ##(t_s + t_w * m* p/2)logp##
Where
##t_s## = start up time
##t_w## = per word transfer time
m = size of message
P = number of processors
Given equation for calculating time of an exchange of two m-word messages b/w any two nodes connected by bidirectional channels is:
##T = t_s + t_w*m *k##
Step1: k= 1
##T = t_s + t_w * m *1##
## T = t_s + t_w * m * P/8## //Note number of processors = 8
Step 2 : k =2
##T = t_s + t_w * m * 2##
## T = t_s + t_w * m * P/4##
Step 3: k =4
##T = t_s + t_w * m * 4##
## T = t_s + t_w * m * P/2##
Adding:## logP(t_s + t_w * m (P/8 + P/4 + P/2))##
Which is not equal to:
## logP(t_s + t_w * m * P/2)##
Can somebody please guide me what is my mistake?
Zulfi.
I have provided a procedure for broadcast for BBT at the following link:
https://cs.stackexchange.com/questions/106631/all-to-all-broadcast-on-a-balanced-binary-tree
But I am not getting the correct time as asked in the question:
Required Timing equation is: ##(t_s + t_w * m* p/2)logp##
Where
##t_s## = start up time
##t_w## = per word transfer time
m = size of message
P = number of processors
Given equation for calculating time of an exchange of two m-word messages b/w any two nodes connected by bidirectional channels is:
##T = t_s + t_w*m *k##
Step1: k= 1
##T = t_s + t_w * m *1##
## T = t_s + t_w * m * P/8## //Note number of processors = 8
Step 2 : k =2
##T = t_s + t_w * m * 2##
## T = t_s + t_w * m * P/4##
Step 3: k =4
##T = t_s + t_w * m * 4##
## T = t_s + t_w * m * P/2##
Adding:## logP(t_s + t_w * m (P/8 + P/4 + P/2))##
Which is not equal to:
## logP(t_s + t_w * m * P/2)##
Can somebody please guide me what is my mistake?
Zulfi.