diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/2mm/2mm.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/2mm/2mm.cc index d2a8e7385a..740c8e2066 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/2mm/2mm.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/2mm/2mm.cc @@ -275,8 +275,8 @@ void cl_launch_kernel(int ni, int nj, int nk, int nl, DATA_TYPE alpha, DATA_TYPE clFinish(clCommandQue); /* Stop and print timer. */ - printf("GPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("GPU Time in seconds:\n"); polybench_print_instruments; } @@ -394,8 +394,8 @@ int main(int argc, char *argv[]) mm2_cpu(ni, nj, nk, nl, alpha, beta, POLYBENCH_ARRAY(tmp), POLYBENCH_ARRAY(A), POLYBENCH_ARRAY(B), POLYBENCH_ARRAY(C), POLYBENCH_ARRAY(D)); /* Stop and print timer. */ - printf("CPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("CPU Time in seconds:\n"); polybench_print_instruments; compareResults(ni, nl, POLYBENCH_ARRAY(D), POLYBENCH_ARRAY(D_outputFromGpu)); diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/3mm/3mm.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/3mm/3mm.cc index 48cbbf5c1c..91c15e1443 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/3mm/3mm.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/3mm/3mm.cc @@ -285,8 +285,8 @@ void cl_launch_kernel(int ni, int nj, int nk, int nl, int nm) clFinish(clCommandQue); /* Stop and print timer. */ - printf("GPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("GPU Time in seconds:\n"); polybench_print_instruments; } @@ -420,8 +420,8 @@ int main(int argc, char *argv[]) POLYBENCH_ARRAY(D), POLYBENCH_ARRAY(G)); /* Stop and print timer. */ - printf("CPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("CPU Time in seconds:\n"); polybench_print_instruments; compareResults(ni, nl, POLYBENCH_ARRAY(G), POLYBENCH_ARRAY(G_outputFromGpu)); diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/adi/adi.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/adi/adi.cc index 48de44b614..b952f65ab6 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/adi/adi.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/adi/adi.cc @@ -480,8 +480,8 @@ int main(int argc, char *argv[]) } /* Stop and print timer. */ - printf("GPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("GPU Time in seconds:\n"); polybench_print_instruments; errcode = clEnqueueReadBuffer(clCommandQue, b_mem_obj, CL_TRUE, 0, mem_size_B, POLYBENCH_ARRAY(B_outputFromGpu), 0, NULL, NULL); @@ -497,8 +497,8 @@ int main(int argc, char *argv[]) adi(tsteps, n, POLYBENCH_ARRAY(A), POLYBENCH_ARRAY(B), POLYBENCH_ARRAY(X)); /* Stop and print timer. */ - printf("CPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("CPU Time in seconds:\n"); polybench_print_instruments; compareResults(n, POLYBENCH_ARRAY(B), POLYBENCH_ARRAY(B_outputFromGpu), POLYBENCH_ARRAY(X), POLYBENCH_ARRAY(X_outputFromGpu)); diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/atax/atax.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/atax/atax.cc index ae65c1663c..bfa92dab42 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/atax/atax.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/atax/atax.cc @@ -236,8 +236,8 @@ void cl_launch_kernel(int nx, int ny) clFinish(clCommandQue); /* Stop and print timer. */ - printf("GPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("GPU Time in seconds:\n"); polybench_print_instruments; } @@ -333,8 +333,8 @@ int main(int argc, char *argv[]) atax_cpu(nx, ny, POLYBENCH_ARRAY(A), POLYBENCH_ARRAY(x), POLYBENCH_ARRAY(y), POLYBENCH_ARRAY(tmp)); /* Stop and print timer. */ - printf("CPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("CPU Time in seconds:\n"); polybench_print_instruments; compareResults(ny, POLYBENCH_ARRAY(y), POLYBENCH_ARRAY(y_outputFromGpu)); diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/bicg/bicg.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/bicg/bicg.cc index 9aa160502c..ccf265f1c0 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/bicg/bicg.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/bicg/bicg.cc @@ -257,8 +257,8 @@ void cl_launch_kernel(int nx, int ny) clFinish(clCommandQue); /* Stop and print timer. */ - printf("GPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("GPU Time in seconds:\n"); polybench_print_instruments; } @@ -360,8 +360,8 @@ int main(int argc, char *argv[]) bicg_cpu(nx, ny, POLYBENCH_ARRAY(A), POLYBENCH_ARRAY(r), POLYBENCH_ARRAY(s), POLYBENCH_ARRAY(p), POLYBENCH_ARRAY(q)); /* Stop and print timer. */ - printf("CPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("CPU Time in seconds:\n"); polybench_print_instruments; compareResults(nx, ny, POLYBENCH_ARRAY(s), POLYBENCH_ARRAY(s_outputFromGpu), POLYBENCH_ARRAY(q), diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/convolution-2d/2DConvolution.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/convolution-2d/2DConvolution.cc index 1698499474..e364eef1b5 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/convolution-2d/2DConvolution.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/convolution-2d/2DConvolution.cc @@ -211,8 +211,8 @@ void cl_launch_kernel(int ni, int nj) clFinish(clCommandQue); /* Stop and print timer. */ - printf("GPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("GPU Time in seconds:\n"); polybench_print_instruments; } diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/convolution-3d/3DConvolution.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/convolution-3d/3DConvolution.cc index 4d99428088..f133532c17 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/convolution-3d/3DConvolution.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/convolution-3d/3DConvolution.cc @@ -197,8 +197,8 @@ void cl_launch_kernel(int ni, int nj, int nk) clFinish(clCommandQue); /* Stop and print timer. */ - printf("GPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("GPU Time in seconds:\n"); polybench_print_instruments; } @@ -321,8 +321,8 @@ int main(int argc, char *argv[]) conv3D(ni, nj, nk, POLYBENCH_ARRAY(A), POLYBENCH_ARRAY(B)); /* Stop and print timer. */ - printf("CPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("CPU Time in seconds:\n"); polybench_print_instruments; compareResults(ni, nj, nk, POLYBENCH_ARRAY(B), POLYBENCH_ARRAY(B_outputFromGpu)); diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/correlation/correlation.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/correlation/correlation.cc index 981185feba..817b11902a 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/correlation/correlation.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/correlation/correlation.cc @@ -305,8 +305,8 @@ void cl_launch_kernel(int m, int n) clFinish(clCommandQue); /* Stop and print timer. */ - printf("GPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("GPU Time in seconds:\n"); polybench_print_instruments; } @@ -445,8 +445,8 @@ int main(int argc, char *argv[]) correlation(m, n, POLYBENCH_ARRAY(data), POLYBENCH_ARRAY(mean), POLYBENCH_ARRAY(stddev), POLYBENCH_ARRAY(symmat)); /* Stop and print timer. */ - printf("CPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("CPU Time in seconds:\n"); polybench_print_instruments; compareResults(m, n, POLYBENCH_ARRAY(symmat), POLYBENCH_ARRAY(symmat_outputFromGpu)); diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/covariance/covariance.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/covariance/covariance.cc index ac04378723..439105b76a 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/covariance/covariance.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/covariance/covariance.cc @@ -267,8 +267,8 @@ void cl_launch_kernel(int m, int n) clFinish(clCommandQue); /* Stop and print timer. */ - printf("GPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("GPU Time in seconds:\n"); polybench_print_instruments; } @@ -379,8 +379,8 @@ int main(int argc, char *argv[]) covariance(m, n, POLYBENCH_ARRAY(data), POLYBENCH_ARRAY(symmat), POLYBENCH_ARRAY(mean)); /* Stop and print timer. */ - printf("CPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("CPU Time in seconds:\n"); polybench_print_instruments; compareResults(m, n, POLYBENCH_ARRAY(symmat), POLYBENCH_ARRAY(symmat_outputFromGpu)); diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/doitgen/doitgen.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/doitgen/doitgen.cc index 61d6e678a9..0815131ddb 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/doitgen/doitgen.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/doitgen/doitgen.cc @@ -356,8 +356,8 @@ int main(int argc, char *argv[]) } /* Stop and print timer. */ - printf("GPU Time in seconds:\n"); polybench_stop_instruments; + printf("GPU Time in seconds:\n"); polybench_print_instruments; errcode = clEnqueueReadBuffer(clCommandQue, c_mem_obj, CL_TRUE, 0, NR * NQ * NP * sizeof(DATA_TYPE), sum_outputFromGpu, 0, NULL, NULL); @@ -375,8 +375,8 @@ int main(int argc, char *argv[]) POLYBENCH_ARRAY(sum)); /* Stop and print timer. */ - printf("CPU Time in seconds:\n"); polybench_stop_instruments; + printf("CPU Time in seconds:\n"); polybench_print_instruments; compareResults(nr, nq, np, POLYBENCH_ARRAY(sum), POLYBENCH_ARRAY(sum_outputFromGpu)); diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/fdtd-2d/fdtd2d.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/fdtd-2d/fdtd2d.cc index 4395baa1d0..28dcfb35f3 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/fdtd-2d/fdtd2d.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/fdtd-2d/fdtd2d.cc @@ -267,8 +267,8 @@ void cl_launch_kernel(int tmax, int nx, int ny) } /* Stop and print timer. */ - printf("GPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("GPU Time in seconds:\n"); polybench_print_instruments; } @@ -381,8 +381,8 @@ int main(int argc, char *argv[]) runFdtd(tmax, nx, ny, POLYBENCH_ARRAY(_fict_), POLYBENCH_ARRAY(ex), POLYBENCH_ARRAY(ey), POLYBENCH_ARRAY(hz)); /* Stop and print timer. */ - printf("CPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("CPU Time in seconds:\n"); polybench_print_instruments; compareResults(nx, ny, POLYBENCH_ARRAY(hz), POLYBENCH_ARRAY(hz_outputFromGpu)); diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/gemm/gemm.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/gemm/gemm.cc index 8cd1378dfd..0127375d82 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/gemm/gemm.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/gemm/gemm.cc @@ -236,8 +236,8 @@ void cl_launch_kernel(int ni, int nj, int nk, DATA_TYPE alpha, DATA_TYPE beta) clFinish(clCommandQue); /* Stop and print timer. */ - printf("GPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("GPU Time in seconds:\n"); polybench_print_instruments; } @@ -331,8 +331,8 @@ int main(int argc, char *argv[]) gemm(ni, nj, nk, alpha, beta, POLYBENCH_ARRAY(A), POLYBENCH_ARRAY(B), POLYBENCH_ARRAY(C)); /* Stop and print timer. */ - printf("CPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("CPU Time in seconds:\n"); polybench_print_instruments; compareResults(ni, nj, POLYBENCH_ARRAY(C), POLYBENCH_ARRAY(C_outputFromGpu)); diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/gemver/gemver.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/gemver/gemver.cc index fdae575cc1..d0f708fcc6 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/gemver/gemver.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/gemver/gemver.cc @@ -302,8 +302,8 @@ void cl_launch_kernel(int n, DATA_TYPE alpha, DATA_TYPE beta) clFinish(clCommandQue); /* Stop and print timer. */ - printf("GPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("GPU Time in seconds:\n"); polybench_print_instruments; } diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/gesummv/gesummv.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/gesummv/gesummv.cc index 27278d7eb9..1ee686989c 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/gesummv/gesummv.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/gesummv/gesummv.cc @@ -249,8 +249,8 @@ void cl_launch_kernel(int n, DATA_TYPE alpha, DATA_TYPE beta) clFinish(clCommandQue); /* Stop and print timer. */ - printf("GPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("GPU Time in seconds:\n"); polybench_print_instruments; } @@ -324,8 +324,8 @@ int main(int argc, char *argv[]) gesummv(n, alpha, beta, POLYBENCH_ARRAY(A), POLYBENCH_ARRAY(B), POLYBENCH_ARRAY(tmp), POLYBENCH_ARRAY(x), POLYBENCH_ARRAY(y)); /* Stop and print timer. */ - printf("CPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("CPU Time in seconds:\n"); polybench_print_instruments; compareResults(n, POLYBENCH_ARRAY(y), POLYBENCH_ARRAY(y_outputFromGpu)); diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/gramschmidt/gramschmidt.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/gramschmidt/gramschmidt.cc index 3883de7b4b..500c004ca2 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/gramschmidt/gramschmidt.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/gramschmidt/gramschmidt.cc @@ -278,8 +278,8 @@ void cl_launch_kernel(int ni, int nj) clFinish(clCommandQue); /* Stop and print timer. */ - printf("GPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("GPU Time in seconds:\n"); polybench_print_instruments; } @@ -385,8 +385,8 @@ int main(int argc, char *argv[]) gramschmidt(ni, nj, POLYBENCH_ARRAY(A), POLYBENCH_ARRAY(R), POLYBENCH_ARRAY(Q)); /* Stop and print timer. */ - printf("CPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("CPU Time in seconds:\n"); polybench_print_instruments; compareResults(ni, nj, POLYBENCH_ARRAY(A), POLYBENCH_ARRAY(A_outputFromGpu)); diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/jacobi-1d-imper/jacobi1D.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/jacobi-1d-imper/jacobi1D.cc index f5c079a09b..c12667e547 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/jacobi-1d-imper/jacobi1D.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/jacobi-1d-imper/jacobi1D.cc @@ -308,8 +308,8 @@ int main(int argc, char *argv[]) } /* Stop and print timer. */ - printf("GPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("GPU Time in seconds:\n"); polybench_print_instruments; errcode = clEnqueueReadBuffer(clCommandQue, a_mem_obj, CL_TRUE, 0, N * sizeof(DATA_TYPE), POLYBENCH_ARRAY(a_outputFromGpu), 0, NULL, NULL); @@ -325,8 +325,8 @@ int main(int argc, char *argv[]) runJacobi1DCpu(tsteps, n, POLYBENCH_ARRAY(a), POLYBENCH_ARRAY(b)); /* Stop and print timer. */ - printf("CPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("CPU Time in seconds:\n"); polybench_print_instruments; compareResults(n, POLYBENCH_ARRAY(a), POLYBENCH_ARRAY(a_outputFromGpu), POLYBENCH_ARRAY(b), POLYBENCH_ARRAY(b_outputFromGpu)); diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/jacobi-2d-imper/jacobi2D.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/jacobi-2d-imper/jacobi2D.cc index b71fa51655..3e0cc82f88 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/jacobi-2d-imper/jacobi2D.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/jacobi-2d-imper/jacobi2D.cc @@ -346,8 +346,8 @@ int main(int argc, char *argv[]) /* Stop and print timer. */ - printf("GPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("GPU Time in seconds:\n"); polybench_print_instruments; errcode = clEnqueueReadBuffer(clCommandQue, a_mem_obj, CL_TRUE, 0, N * N * sizeof(DATA_TYPE), POLYBENCH_ARRAY(a_outputFromGpu), 0, NULL, NULL); @@ -364,8 +364,8 @@ int main(int argc, char *argv[]) runJacobi2DCpu(tsteps, n, POLYBENCH_ARRAY(a), POLYBENCH_ARRAY(b)); /* Stop and print timer. */ - printf("CPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("CPU Time in seconds:\n"); polybench_print_instruments; compareResults(n, POLYBENCH_ARRAY(a), POLYBENCH_ARRAY(a_outputFromGpu), POLYBENCH_ARRAY(b), POLYBENCH_ARRAY(b_outputFromGpu)); diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/lu/lu.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/lu/lu.cc index 01065dce94..f38e578e27 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/lu/lu.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/lu/lu.cc @@ -312,8 +312,8 @@ int main(int argc, char *argv[]) } /* Stop and print timer. */ - printf("GPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("GPU Time in seconds:\n"); polybench_print_instruments; errcode = clEnqueueReadBuffer(clCommandQue, a_mem_obj, CL_TRUE, 0, N*N*sizeof(DATA_TYPE), POLYBENCH_ARRAY(A_outputFromGpu), 0, NULL, NULL); @@ -327,8 +327,8 @@ int main(int argc, char *argv[]) lu(n, POLYBENCH_ARRAY(A)); /* Stop and print timer. */ - printf("CPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("CPU Time in seconds:\n"); polybench_print_instruments; compareResults(n, POLYBENCH_ARRAY(A), POLYBENCH_ARRAY(A_outputFromGpu)); diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/mvt/mvt.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/mvt/mvt.cc index cd5ea19b7e..0a539db6e2 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/mvt/mvt.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/mvt/mvt.cc @@ -239,8 +239,8 @@ void cl_launch_kernel(int n) clFinish(clCommandQue); /* Stop and print timer. */ - printf("GPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("GPU Time in seconds:\n"); polybench_print_instruments; } @@ -338,8 +338,8 @@ int main(int argc, char *argv[]) runMvt(n, POLYBENCH_ARRAY(a), POLYBENCH_ARRAY(x1), POLYBENCH_ARRAY(x2), POLYBENCH_ARRAY(y_1), POLYBENCH_ARRAY(y_2)); /* Stop and print timer. */ - printf("CPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("CPU Time in seconds:\n"); polybench_print_instruments; compareResults(n, POLYBENCH_ARRAY(x1), POLYBENCH_ARRAY(x1_outputFromGpu), POLYBENCH_ARRAY(x2), POLYBENCH_ARRAY(x2_outputFromGpu)); diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/syr2k/syr2k.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/syr2k/syr2k.cc index 8141023a70..42891ae8ba 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/syr2k/syr2k.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/syr2k/syr2k.cc @@ -240,8 +240,8 @@ void cl_launch_kernel(int ni, int nj, DATA_TYPE alpha, DATA_TYPE beta) clFinish(clCommandQue); /* Stop and print timer. */ - printf("GPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("GPU Time in seconds:\n"); polybench_print_instruments; } @@ -343,8 +343,8 @@ int main(int argc, char *argv[]) syr2kCpu(ni, nj, alpha, beta, POLYBENCH_ARRAY(A), POLYBENCH_ARRAY(B), POLYBENCH_ARRAY(C)); /* Stop and print timer. */ - printf("CPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("CPU Time in seconds:\n"); polybench_print_instruments; compareResults(ni, POLYBENCH_ARRAY(C), POLYBENCH_ARRAY(C_outputFromGpu)); diff --git a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/syrk/syrk.cc b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/syrk/syrk.cc index 1637fc2d58..e43966e15c 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/benchmark/syrk/syrk.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/benchmark/syrk/syrk.cc @@ -230,8 +230,8 @@ void cl_launch_kernel(int ni, int nj, DATA_TYPE alpha, DATA_TYPE beta) clFinish(clCommandQue); /* Stop and print timer. */ - printf("GPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("GPU Time in seconds:\n"); polybench_print_instruments; } @@ -326,8 +326,8 @@ int main(int argc, char *argv[]) syrk(ni, nj, alpha, beta, POLYBENCH_ARRAY(A), POLYBENCH_ARRAY(C)); /* Stop and print timer. */ - printf("CPU Time in seconds:\n"); - polybench_stop_instruments; + polybench_stop_instruments; + printf("CPU Time in seconds:\n"); polybench_print_instruments; compareResults(ni, POLYBENCH_ARRAY(C), POLYBENCH_ARRAY(C_outputFromGpu));