Review Board 2.0.15


sim: Add an option to forward work items to Python

Review Request #3244 - Created Dec. 4, 2015 and submitted

Information
Andreas Sandberg
gem5
default
Reviewers
Default
Changeset 11240:b7f2abdbce1a
---------------------------
sim: Add an option to forward work items to Python

There are cases where we want the Python world to handle work items
instead of the C++ world. However, that's currently not possible. This
changeset adds the forward_work_items option to the System class. Then
it is set to True, work items will generate workbegin/workend
simulation exists with the work item ID as the exit code and the old
C++ handling is completely bypassed.

   

Issue Summary

1 0 1 0
Review request changed
Updated (Dec. 14, 2015, 11:02 a.m.)

Status: Closed (submitted)

Posted (Dec. 17, 2015, 9:46 a.m.)

I know I'm a bit late in reviewing this patch and it is already checked in, but could you please make the following change below. Thanks!

src/sim/System.py (Diff revision 1)
 
 

Why make this default true? This changes the behavior of the simulator and now for those apps that are annotated with work_ends, the simulation stops as soon as the first annotation is encountered. Furthermore, it is not obvious that the simulation ends because the first annotation was encountered rather than the application reaches completion.

Please revert back to the old behavior. It makes a lot more sense that by default, gem5 will execute the entire application and only stops prematurely if the user explicitly asks to exit when work items are encountered.

  1. The intention was always to use the old behaviour by default. I'll push a fix shortly.