The mesh topology, as in the file Mesh.py, assumes that the number of directory controllers is same as the number of number of cpus. Since the number of directory controllers has not been specified on the command line, it defaults to 1. If you mention number of directory controllers as 8, that should remove this error.

--
Nilay

On Fri, 13 Apr 2012, Xuhao Chen wrote:

Hi everyone,
When I run gem5 with Ruby, there is an error about Mesh:

root@gem5-desktop:/home/gem5_stable# ./build/ALPHA_FS/gem5.opt 
configs/example/ruby_fs.py -n 8 --l1i_size=32kB --l1d_size=32kB --l2_size=8MB 
--num-l2caches=8 --topology=Mesh --timing
gem5 Simulator System.  http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 compiled Apr 10 2012 04:36:59
gem5 started Apr 10 2012 04:41:54
gem5 executing on gem5-desktop
command line: ./build/ALPHA_FS/gem5.opt configs/example/ruby_fs.py -n 8 
--l1i_size=32kB --l1d_size=32kB --l2_size=8MB --num-l2caches=8 --topology=Mesh 
--timing
Error: could not create topology Mesh
Traceback (most recent call last):
 File "<string>", line 1, in ?
 File "/home/gem5_stable/src/python/m5/main.py", line 356, in main
   exec filecode in scope
 File "configs/example/ruby_fs.py", line 129, in ?
   Ruby.create_system(options, system, system.piobus, system._dma_devices)
 File "/home/gem5_stable/configs/ruby/Ruby.py", line 109, in create_system
   net_topology = eval("%s.makeTopology(all_cntrls, options, \
 File "<string>", line 0, in ?
 File "/home/gem5_stable/src/mem/ruby/network/topologies/Mesh.py", line 80, in 
makeTopology
   assert(node.type == 'DMA_Controller')
AssertionError

It looks like the error comes from assert(node.type == 'DMA_Controller').
I print the node.type, and it is actually Directory_Controller. Any ideas?
Best regards,



Xuhao Chen
PhD student
School of Computer
National University of Defense Technology
Changsha, Hunan, P.R.China, 410073
Tel:  +86-159-741-03340 (Mobile)
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to