From 785567a2073b5923d961eea3bfe2667b462910b2 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Sat, 18 Sep 2021 20:29:30 -0500 Subject: add stuff heeh --- csci5451/ass1.tex | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'csci5451/ass1.tex') 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); -- cgit v1.2.3