diff --git a/examples_cuda/aobench/ao.cpp b/examples_cuda/aobench/ao.cpp index 747f8466..e6160503 100644 --- a/examples_cuda/aobench/ao.cpp +++ b/examples_cuda/aobench/ao.cpp @@ -170,7 +170,7 @@ int main(int argc, char **argv) reset_and_start_timer(); const double t0 = rtc(); ao_ispc_tasks(width, height, NSUBSAMPLES, fimg); - double t = (rtc() - t0); //get_elapsed_mcycles(); + double t = 1e3*(rtc() - t0); //get_elapsed_mcycles(); minTimeISPCTasks = std::min(minTimeISPCTasks, t); } diff --git a/examples_cuda/aobench/ao_cu.cpp b/examples_cuda/aobench/ao_cu.cpp index 2323e872..6d1674c0 100755 --- a/examples_cuda/aobench/ao_cu.cpp +++ b/examples_cuda/aobench/ao_cu.cpp @@ -470,7 +470,7 @@ int main(int argc, char **argv) int arg_2 = height; int arg_3 = NSUBSAMPLES; void *func_args[] = {&arg_1, &arg_2, &arg_3, (float*)&d_fimg}; - const double t = CUDALaunch(NULL, func_name, func_args); + const double t = 1e3*CUDALaunch(NULL, func_name, func_args); #endif minTimeISPCTasks = std::min(minTimeISPCTasks, t); }