I was having the exact same problem with very similar configuration (Ubuntu 12.10, same library versions reported by Abbas). The exact same binary can run the "hello world" alpha binary in SE just fine, so it isn't a build system/library thing or a core swig thing. Even SE SimObjects have moderately complex hierarchies.
To debug what is special about Garnet, I made a dummy copy of BaseGarnetNetwork ( with dummy implementations of the pure virtual methods). Trying to use it directly (modified configs/ruby/Ruby.py to use it instead of SimpleNetwork) results in the same problem. If the parameters ni_flit_size and vsc_per_vnet are removed from the SimObject, the simulation starts (it crashes, obviously, but it gets past the configuration step). Even adding 'dummy = Param.Int(0,"dummy")' causes the python error. *However, changing them to Param.UInt8 seems to work fine.* Indeed, changing (otherwise unmodified) BaseGarnetNetwork.py and GarnetNetwork.py from Param.Int to Param.UInt8 runs the network test to a successful completion with -garnet-network=flexible. I'm not quite sure what is different between these parameter types, but at this point I can't bring myself to dig in deeper. Hope this helps people run garnet on the latest code and maybe joggles some -Mark On Tue, Feb 5, 2013 at 11:50 AM, Tushar Krishna <[email protected]>wrote: > Hi Dehghani, > Sorry I am super swamped with work so can't help out too much on this. > > Anyone else seen this error earlier and know what the problem is? > > A few quick suggestions from the top of my head: > - check if you have python-dev installed > - am surprised why it would run without garnet, but break with it, as it > is breaking right in the configuration time, not within the code. > Try building some other protocol and trying without garnet. > > scons build/ALPHA_MOESI_hammer/gem5.debug > > ./build/ALPHA_MOESI_hammer/gem5.debug configs/example/ruby_random_test.py > --num-cpus=16 --num-dirs=16 --topology=Mesh --mesh-rows=4**** > See if that works. > > - Tushar > > > On Feb 5, 2013, at 11:38 AM, abbas dehghani wrote: > > hi all, > > I am trying to run the interconnect network by gem5 > I downloaded the gem5 simulator at this link : > http://repo.gem5.org/ in this part : gem5 source code -- development > repository > > My Os is Linux mint 64bit. > I tested the version of the softwares.the result is > g++ (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2 > Python 2.7.3 > SCons by Steven Knight et al.:script: v2.1.0.r5357[MODIFIED], 2011/09/09 > 21:31:03, by bdeegan on ubuntu > SWIG Version 2.0.7 Compiled with g++ [x86_64-unknown-linux-gnu] > m4 (GNU M4) 1.4.16 > > I compiled gem5. I used the command line > scons build/ALPHA_Network_test/gem5.debug > after that, I am unable to run simulation. > I used the command line > ./build/ALPHA_Network_test/gem5.debug > configs/example/ruby_network_test.py --num-cpus=16 --num-dirs=16 > --topology=Mesh --mesh-rows=4 --sim-cycles=1000 --injectionrate=0.01 > --synthetic=0 --fixed-pkts --maxpackets=1 --garnet-network=fixed > > i got many warnings and errors like this > File "/home/abbas/1/gem5/src/python/m5/SimObject.py", line 1018, in > getCCParams > Setattr(cc_params, param, value) > SystemError: NULL result without error in PyObject_Call > if the last parameter is removed ,the simulation will run > > could anyone tell me how do I solve the problem? > thanks > please answer > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > > > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
