Skip to content
Snippets Groups Projects
Commit f4f8f005 authored by Prakalp Srivastava's avatar Prakalp Srivastava
Browse files

fixed a timer bug in oepncl_cpu_baseline stencil

parent eb1be107
No related branches found
No related tags found
No related merge requests found
......@@ -96,7 +96,7 @@ int main(int argc, char** argv) {
fclose(fp);
pb_InitializeTimerSet(&timers);
pb_SwitchToTimer(&timers, pb_TimerID_COMPUTATION);
pb_SwitchToTimer(&timers, visc_TimerID_COMPUTATION);
cl_int clStatus;
cl_uint numPlatforms;
......@@ -214,7 +214,7 @@ int main(int argc, char** argv) {
clStatus = clEnqueueReadBuffer(clCommandQueue,d_Anext,CL_TRUE,0,size*sizeof(float),h_Anext,0,NULL,NULL);
CHECK_ERROR("clEnqueueReadBuffer")
pb_SwitchToTimer(&timers, pb_TimerID_COMPUTATION);
pb_SwitchToTimer(&timers, visc_TimerID_COMPUTATION);
clStatus = clReleaseMemObject(d_A0);
clStatus = clReleaseMemObject(d_Anext);
clStatus = clReleaseKernel(clKernel);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment