Skip to content

Commit aec96ae

Browse files
author
alielabridi
committed
Revert "correcting typos"
This reverts commit 12f0bb7.
1 parent 12f0bb7 commit aec96ae

File tree

4 files changed

+39
-10
lines changed

4 files changed

+39
-10
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,3 @@ $RECYCLE.BIN/
8888

8989
# Windows shortcuts
9090
*.lnk
91-
sftp-config.json

sftp-config.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
//to be private
32
// The tab key will cycle through the settings when first created
43
// Visit http://wbond.net/sublime_packages/sftp/settings for help
54

strassen.C

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ class Main : public CBase_Main {
8585

8686
}
8787
else if(correctness){
88-
CkPrintf("Charm++ - Correct: matrix size = %d, Threshold = %d,# of proc = %d, Exec time = %lf sec (cpp: %lf) \n", size, THRESHOLD,CkNumPes(),endtimer-starttimer,elapsed_secs);
89-
myfile<<"Charm++ - Correct: matrix size = " <<size<<", Threshold = "<< THRESHOLD<<",# of proc = "<<CkNumPes()<<" , Exec time = " << endtimer-starttimer << "\n";
88+
CkPrintf("Strassen - Correct: matrix size = %d, Threshold = %d,# of proc = %d, Exec time = %lf sec (cpp: %lf) \n", size, THRESHOLD,CkNumPes(),endtimer-starttimer,elapsed_secs);
89+
myfile<<"Strassen - Correct: matrix size = " <<size<<", Threshold = "<< THRESHOLD<<",# of proc = "<<CkNumPes()<<" , Exec time = " << endtimer-starttimer << "\n";
9090
}
9191
else{
92-
CkPrintf("Charm++ - Incorrect: matrix size = %d, Threshold = %d,# of proc = %d, Exec time = %lf sec \n", size, THRESHOLD,CkNumPes(),endtimer-starttimer);
93-
myfile<<"Charm++ - Incorrect: matrix size = " <<size<<", Threshold = "<< THRESHOLD<<",# of proc = "<<CkNumPes()<<" , Exec time = " << endtimer-starttimer << "\n";
92+
CkPrintf("Strassen - Incorrect: matrix size = %d, Threshold = %d,# of proc = %d, Exec time = %lf sec \n", size, THRESHOLD,CkNumPes(),endtimer-starttimer);
93+
myfile<<"Strassen - Incorrect: matrix size = " <<size<<", Threshold = "<< THRESHOLD<<",# of proc = "<<CkNumPes()<<" , Exec time = " << endtimer-starttimer << "\n";
9494
}
9595
myfile.close();
9696
delete m;
@@ -242,10 +242,15 @@ class strassen : public CBase_strassen {
242242

243243
ValueMsg * m1 = (ValueMsg *) CkWaitFuture(p1Future);
244244
ValueMsg * m2 = (ValueMsg *) CkWaitFuture(p2Future);
245+
245246
ValueMsg * m3 = (ValueMsg *) CkWaitFuture(p3Future);
247+
246248
ValueMsg * m4 = (ValueMsg *) CkWaitFuture(p4Future);
249+
247250
ValueMsg * m5 = (ValueMsg *) CkWaitFuture(p5Future);
251+
248252
ValueMsg * m6 = (ValueMsg *) CkWaitFuture(p6Future);
253+
249254
ValueMsg * m7 = (ValueMsg *) CkWaitFuture(p7Future);
250255

251256
/*do we need another chare for the C1,C2,C3,C4 ?*/

testing.sh

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
# do
55
# for THRESHOLD in {3..6}
66
# do
7+
# if [$THRESHOLD > $size]
8+
# then
9+
# break
10+
# fi
711
# for proc in {1..10}
812
# do
913
# ./charmrun ./strassen $((2**$size)) $((2**$THRESHOLD)) 0 +p$proc
@@ -15,10 +19,33 @@
1519
# done
1620

1721

18-
for size in {10..12}
22+
# for size in {8..10}
23+
# do
24+
# for THRESHOLD in {5..7}
25+
# do
26+
# if [$THRESHOLD > $size]
27+
# then
28+
# break
29+
# fi
30+
# for proc in {1..10}
31+
# do
32+
# ./charmrun ./strassen $((2**$size)) $((2**$THRESHOLD)) 0 +p$proc
33+
# ./OpenMP $((2**$size)) $((2**$THRESHOLD)) $proc
34+
# done
35+
36+
# done
37+
# ./charmrun ./strassen $((2**$size)) $((2**$size)) 0 +p1
38+
# done
39+
40+
41+
for size in {7..9}
1942
do
20-
for THRESHOLD in {6..7}
43+
for THRESHOLD in {5..6}
2144
do
45+
if [$THRESHOLD > $size]
46+
then
47+
break
48+
fi
2249
for proc in {1..10}
2350
do
2451
./charmrun ./strassen $((2**$size)) $((2**$THRESHOLD)) 0 +p$proc
@@ -27,5 +54,4 @@ do
2754

2855
done
2956
./charmrun ./strassen $((2**$size)) $((2**$size)) 0 +p1
30-
done
31-
57+
done

0 commit comments

Comments
 (0)