Skip to content

Commit 12f0bb7

Browse files
author
alielabridi
committed
correcting typos
1 parent a520f86 commit 12f0bb7

File tree

4 files changed

+10
-39
lines changed

4 files changed

+10
-39
lines changed

.gitignore

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

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

sftp-config.json

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

strassen.C

Lines changed: 4 additions & 9 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("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";
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";
9090
}
9191
else{
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";
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";
9494
}
9595
myfile.close();
9696
delete m;
@@ -242,15 +242,10 @@ class strassen : public CBase_strassen {
242242

243243
ValueMsg * m1 = (ValueMsg *) CkWaitFuture(p1Future);
244244
ValueMsg * m2 = (ValueMsg *) CkWaitFuture(p2Future);
245-
246245
ValueMsg * m3 = (ValueMsg *) CkWaitFuture(p3Future);
247-
248246
ValueMsg * m4 = (ValueMsg *) CkWaitFuture(p4Future);
249-
250247
ValueMsg * m5 = (ValueMsg *) CkWaitFuture(p5Future);
251-
252248
ValueMsg * m6 = (ValueMsg *) CkWaitFuture(p6Future);
253-
254249
ValueMsg * m7 = (ValueMsg *) CkWaitFuture(p7Future);
255250

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

testing.sh

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

2117

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}
18+
for size in {10..12}
4219
do
43-
for THRESHOLD in {5..6}
20+
for THRESHOLD in {6..7}
4421
do
45-
if [$THRESHOLD > $size]
46-
then
47-
break
48-
fi
4922
for proc in {1..10}
5023
do
5124
./charmrun ./strassen $((2**$size)) $((2**$THRESHOLD)) 0 +p$proc
@@ -54,4 +27,5 @@ do
5427

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

0 commit comments

Comments
 (0)