Activity Diagram + Loops

Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
Reply

Join Date: Dec 2006
Posts: 3
Reputation: IrfanMulla is an unknown quantity at this point 
Solved Threads: 0
IrfanMulla IrfanMulla is offline Offline
Newbie Poster

Activity Diagram + Loops

 
0
  #1
Aug 22nd, 2008
Hello.

I need to draw an activity digarm for a program code called Finite Differene Time Domain (FDTD). I have attached the code in a document where there are all the for loops. The task is given below

In the piece of code mentioned, you could look at parallelizing the lines of code, as I said
think as if you are using threads. Parallelized grains of code must be independent.

If you think about using a cluster (rather than a parallel machine) then you may want higher
granularity (ie you split the task into bigger chunks (since the communication times are greater).

If anybody could help me out by drwaing an activity digaram for the code below or point me towards tutorials for understanding more.

tHANKS
Attached Files
File Type: doc Compute E from H.doc (31.0 KB, 4 views)
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,861
Reputation: ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all 
Solved Threads: 120
ithelp's Avatar
ithelp ithelp is offline Offline
Posting Virtuoso

Re: Activity Diagram + Loops

 
0
  #2
Aug 22nd, 2008
It is like matrix multiplication can be distributed among many cpu each of them can compute a row /column independently,
Nice homework I would say.
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 3
Reputation: IrfanMulla is an unknown quantity at this point 
Solved Threads: 0
IrfanMulla IrfanMulla is offline Offline
Newbie Poster

Re: Activity Diagram + Loops

 
0
  #3
Aug 22nd, 2008
Any ideas as to what is happenign in the loops below. I understand ther are three loops. diffiuculy on the array and hwo to reperesent this in a dependency graph.

for (Jx = 1; Jx <= (Nx - 1); Jx++) {
for (Jy = 1; Jy <= (Ny - 1); Jy++) {
for (Jz = 1; Jz <= (Nz - 1); Jz++) {
Eold[1] = E.x.grid[Jx][Jy][Jz];
Eold[2] = E.y.grid[Jx][Jy][Jz];
Eold[3] = E.z.grid[Jx][Jy][Jz];
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Computer Science Forum
Thread Tools Search this Thread



Tag cloud for Computer Science
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC