Skip to content
Snippets Groups Projects

Task timers

Open Aidan Chalk requested to merge task_timers into master

Added task timers output call to QuickSched.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
608 608
609 609 /* Set the task stats. */
610 610 t->toc = getticks();
611 #ifdef WITH_TASK_TIMERS
612 t->tid = omp_get_thread_num();
  • 1646 1649 lock_init( &s->lock );
    1647 1650
    1648 1651 }
    1652
    1653
    1654
    1655 void qsched_dump_task_timers( struct qsched *s, char *filename ){
    1656 #ifdef WITH_TASK_TIMERS
    1657 FILE *task_file;
    1658
    1659 task_file = fopen(filename, "w");
    1660
    1661 for(int i = 0; i < s->count; i++)
    1662 {
  • Aidan Chalk
  • 608 608
    609 609 /* Set the task stats. */
    610 610 t->toc = getticks();
    611 #ifdef WITH_TASK_TIMERS
    612 t->tid = omp_get_thread_num();
    • My understanding is that it is not expensive - i think how its done is stored as threadprivate and this just hides it from the programmer.

  • Aidan Chalk
  • 1646 1649 lock_init( &s->lock );
    1647 1650
    1648 1651 }
    1652
    1653
    1654
    1655 void qsched_dump_task_timers( struct qsched *s, char *filename ){
    1656 #ifdef WITH_TASK_TIMERS
    1657 FILE *task_file;
    1658
    1659 task_file = fopen(filename, "w");
    1660
    1661 for(int i = 0; i < s->count; i++)
    1662 {
    • Will fix the formatting.

      I'm not convinced the SWIFT script is correct and has a bunch of stuff we don't need for quicksched I think - the script i made is based on the SWIFT one, just rewritten to use the output I did here.

  • Aidan Chalk
  • 608 608
    609 609 /* Set the task stats. */
    610 610 t->toc = getticks();
    611 #ifdef WITH_TASK_TIMERS
    612 t->tid = omp_get_thread_num();
  • Aidan Chalk Added 1 commit:

    Added 1 commit:

    • 2887dd39 - Updated the task script to match peter's new version for SWIFT
  • Please register or sign in to reply
    Loading