mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
Polybench: do not measure printf
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user