Review Board 2.0.15


ruby: cluster topology config fix

Review Request #2224 - Created April 9, 2014 and updated

Information
Malek Musleh
gem5
default
Reviewers
Default
Changeset 10158:97c7a8d9ea1e
---------------------------
ruby: cluster topology config fix

This patch adds a missing member function, and updates the ruby config file to include the list of controllers for the Cluster topology. Previously the list of controllers was not being passed to the topology.

   

Issue Summary

2 1 1 0
Review request changed
Updated (April 10, 2014, 9:17 a.m.)

Summary:

-ruby: cluster config fix _init_ + and missing fuc
+ruby: cluster topology config fix

Description:

~  

Changeset 10158:6e2ebdf2e286

  ~

Changeset 10158:97c7a8d9ea1e

   
   

ruby: cluster topology config fix

  +
  +

This patch adds a missing member function, and updates the ruby config file to include the list of controllers for the Cluster topology. Previously the list of controllers was not being passed to the topology.

Diff:

Revision 2 (+5 -1)

Show changes

Ship it!
Posted (April 10, 2014, 9:37 a.m.)
Ship It!
Ship it!
Posted (April 10, 2014, 9:41 a.m.)
Ship It!
Posted (April 10, 2014, 9:58 a.m.)



  
configs/ruby/Ruby.py (Diff revision 2)
 
 
I am not in favour of adding such ad hoc checks to the config file.
  1. I am not quite sure what you mean. There are other instances in the config scripts where string comparisons are done, so there is a long precedent for that (including a patch that was recently committed). Do you prefer doing something like if type(topology) == Cluster? If so, I tried that initially, but it required adding additional imports to the top of Ruby.py, and created some other complications that prevents it from running.
  2. I think a solution is to go back to your first diff and change the line in Cluster.py to:
    __init__(self, controllers=[],...