diff options
author | Matt Strapp <matt@mattstrapp.net> | 2021-09-18 20:29:30 -0500 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2021-09-18 20:29:30 -0500 |
commit | 785567a2073b5923d961eea3bfe2667b462910b2 (patch) | |
tree | d6e0e4efb9cd4899ebb1ee3b133c758bf5e309d2 /csci5451 | |
parent | Update resume a bit (diff) | |
download | homework-785567a2073b5923d961eea3bfe2667b462910b2.tar homework-785567a2073b5923d961eea3bfe2667b462910b2.tar.gz homework-785567a2073b5923d961eea3bfe2667b462910b2.tar.bz2 homework-785567a2073b5923d961eea3bfe2667b462910b2.tar.lz homework-785567a2073b5923d961eea3bfe2667b462910b2.tar.xz homework-785567a2073b5923d961eea3bfe2667b462910b2.tar.zst homework-785567a2073b5923d961eea3bfe2667b462910b2.zip |
add stuff heeh
Diffstat (limited to '')
-rw-r--r-- | csci5451/ass1.tex | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/csci5451/ass1.tex b/csci5451/ass1.tex index db8ba9c..6dbdfc1 100644 --- a/csci5451/ass1.tex +++ b/csci5451/ass1.tex @@ -104,7 +104,7 @@ \begin{lstlisting}[language=C]] //Assume first processor with message is (0,0) for(int c=0;c<(C/2);c++) { - forward_message(i,c,msg); + forward_message(0,c,msg); } int i=0, j=0; //Column loop, parallelized between both messages @@ -115,7 +115,11 @@ break; } } - //Row loop, parallelized between all rows + //Parallelized among all rows + for(int r=0;r<(r/2);r++) { + forward_message(r,0,msg); + } + //Row loop, parallelized between all rows with messages while(true) { if (message is not in node) { send_message(i++,j,msg); |