Hi,

As far as I have noticed gem5 network_test positions CPUS/DIRS like this:
[cpu0,cpu1,...cpuN, dir0,dir1,...,dirN] in Pt2Pt.py file.

*I would like to change this order to [cpu0,dir0, cpu1,dir1, ..., cpuN,
dirN]*
Anyone has previous experience with such a problem?

So far I have changed:
        ext_links = [ExtLink(link_id=i, ext_node=n, int_node=routers[i])
                   for (i, n) in enumerate(nodes)]
to:
        ext_links = []
        for(i,n ) in enumerate(nodes):
  k = (i%2)*(len(nodes)/2)+i/2
  print repr(nodes[k]) + ' >>>> ' + repr(k)
  ext_links.append(ExtLink(link_id=i, ext_node=nodes[k],
int_node=routers[i]))

in topology file configs/topologies/Pt2Pt.py

However just changing the ext_links[] array does not seem to be enough as
routing tables (netdests) are not set correctly.

Maybe some changes need to be done in file configs/ruby/Network_test.py as
well, before creating the topology?? for example reordering the nodes in
all_cntrls found in that file?

...
  all_cntrls = l1_cntrl_nodes + dir_cntrl_nodes

    topology = create_topology(all_cntrls, options)

    return (cpu_sequencers, dir_cntrl_nodes, topology)
....


The simulation command i'm using is:

build/ARM/gem5.opt
--debug-flags=RubyPort,RubySequencer,NetworkTest,RubyNetwork,RubyTest,RubyGenerated
--trace-start=0 --trace-file=trace.out configs/example/ruby_network_test.py
--num-cpus=8 --num-dirs=8 --topology=Pt2Pt --fixed-pkts --maxpackets=2.

Thanks in advance
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to