Skip to content

Commit 0e00a16

Browse files
committed
refactor: remove c3 print loop from v3
1 parent 1a415f3 commit 0e00a16

File tree

3 files changed

+0
-11
lines changed

3 files changed

+0
-11
lines changed

triangle_v3_cilk.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,6 @@ int main(int argc, char **argv) {
135135

136136
std::chrono::duration<double> elapsed = stop - start;
137137
std::cout<<"Took "<< elapsed.count() <<std::endl;
138-
139-
for (int col = 0; col < N; ++col) {
140-
std::cout << c3[col] << std::endl;
141-
}
142138
} catch (std::exception &e) {
143139
std::cout << "Error" << std::endl;
144140
std::cerr << e.what() << std::endl;

triangle_v3_openmp.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,6 @@ int main(int argc, char **argv) {
140140

141141
std::chrono::duration<double> elapsed = stop - start;
142142
std::cout<<"Took "<< elapsed.count() <<std::endl;
143-
144-
for (int col = 0; col < N; ++col) {
145-
std::cout << c3[col] << std::endl;
146-
}
147143
} catch (std::exception &e) {
148144
std::cout << "Error" << std::endl;
149145
std::cerr << e.what() << std::endl;

triangle_v3_serial.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,6 @@ int main(int argc, char **argv) {
131131
std::chrono::duration<double> elapsed = stop - start;
132132
std::cout<<"Took "<< elapsed.count() <<std::endl;
133133

134-
for (int col = 0; col < N; ++col) {
135-
std::cout << c3[col] << std::endl;
136-
}
137134
} catch (std::exception &e) {
138135
std::cout << "Error" << std::endl;
139136
std::cerr << e.what() << std::endl;

0 commit comments

Comments
 (0)