Opened 8 months ago

Last modified 4 months ago

#9261 new bug

-S prints incorrect number of bound tasks

Reported by: edsko Owned by: simonmar
Priority: low Milestone:
Component: Runtime System Version: 7.8.2
Keywords: newcomer Cc: simonmar
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description (last modified by thomie)

In rts/Stats.c we have:

            statsPrintf("  TASKS: %d (%d bound, %d peak workers (%d total), using -N%d)\n",
                        taskCount, taskCount - workerCount,
                        peakWorkerCount, workerCount,
                        n_capabilities);

but I think taskCount - workerCount must be wrong, because taskCount is the _current_ number of tasks, while workerAcount is the _total_ number of workers (accumulating). I think it should be:

            statsPrintf("  TASKS: %d (%d bound, %d peak workers (%d total), using -N%d)\n",
                        taskCount, taskCount - currentWorkerCount,
                        peakWorkerCount, workerCount,
                        n_capabilities);

Change History (1)

comment:1 Changed 4 months ago by thomie

  • Cc simonmar added
  • Component changed from Compiler to Runtime System
  • Description modified (diff)
  • difficulty changed from Unknown to Easy (less than 1 hour)
  • Keywords newcomer added
  • Owner set to simonmar
Note: See TracTickets for help on using tickets.