13 double accounted = 0.0;
16 printfQuda(
" %20s = %f secs (%6.3g%%), with %8d calls at %e us per call\n",
23 if (accounted > 0.0) {
25 printfQuda(
" total accounted = %f secs (%6.3g%%)\n",
27 printfQuda(
" total missing = %f secs (%6.3g%%)\n",
32 warningQuda(
"Accounted time %f secs in %s is greater than total time %f secs",
73 const uint32_t TimeProfile::nvtx_colors[] = { 0xff00ff00, 0xff0000ff, 0xffffff00, 0xffff00ff, 0xff00ffff, 0xffff0000, 0xffffffff };
74 const int TimeProfile::nvtx_num_colors =
sizeof(nvtx_colors)/
sizeof(uint32_t);
83 printfQuda(
"\n %20s Total time = %g secs\n",
"QUDA",
87 double accounted = 0.0;
88 bool print_timer =
true;
91 if (print_timer)
printfQuda(
" %20s = %f secs (%6.3g%%), with %8d calls at %e us per call\n",
98 if (accounted > 0.0) {
100 printfQuda(
" total accounted = %f secs (%6.3g%%)\n",
102 printfQuda(
" total missing = %f secs (%6.3g%%)\n",
107 warningQuda(
"Accounted time %f secs in %s is greater than total time %f secs\n",
static std::string pname[]
static int global_total_level[QUDA_PROFILE_COUNT]
Timer profile[QUDA_PROFILE_COUNT]
static bool global_switchOff[QUDA_PROFILE_COUNT]
static Timer global_profile[QUDA_PROFILE_COUNT]
static void PrintGlobal()
__device__ unsigned int count[QUDA_MAX_MULTI_REDUCE]