/normxcorr/trunk

To get this branch, use:
bzr branch http://suren.me/webbzr/normxcorr/trunk

« back to all changes in this revision

Viewing changes to dict_hw/src/dict_hw.cu

  • Committer: Suren A. Chilingaryan
  • Date: 2009-12-15 19:24:16 UTC
  • Revision ID: csa@dside.dyndns.org-20091215192416-hsqqyaivreiw1gso
Print timings using reportMessage calls

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
    int init_time = ctx->time[0]+ctx->time[1]+ctx->time[2]+ctx->time[3]+ctx->time[4]+ctx->time[12]+ctx->time[13];
89
89
    int load_time = ctx->time[14] + ctx->time[15];
90
90
    int process_time = ctx->time[5];
91
 
    printf("\n");
92
 
    printf("Library timings\n");
93
 
    printf("---------------\n");
 
91
    reportMessage("");
 
92
    reportMessage("Library timings");
 
93
    reportMessage("---------------");
94
94
    print_timing("Overall", init_time + load_time + process_time + ctx->time[16]);
95
95
    print_timing("Initialization", init_time);
96
96
    print_timing("  Hardware Detection", ctx->time[0]);
118
118
    gettimeofday(&tv2, NULL);
119
119
    time = (tv2.tv_sec - tv1.tv_sec) * 1000000 + (tv2.tv_usec - tv1.tv_usec);
120
120
    print_timing("Destruction", time);
121
 
    printf("\n");
 
121
    reportMessage("");
122
122
#endif /* DICT_HW_MEASURE_TIMINGS */
123
123
}
124
124