Dear Tushar, thanks for your reply I have the correct python and C++ libraries If the last parameter --garnet... is removed then this simulation will run
best regards, dehghani On 29/01/2013, gem5-users-requ...@gem5.org <gem5-users-requ...@gem5.org> wrote: > Send gem5-users mailing list submissions to > gem5-users@gem5.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > or, via email, send a message with subject or body 'help' to > gem5-users-requ...@gem5.org > > You can reach the person managing the list at > gem5-users-ow...@gem5.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of gem5-users digest..." > > > Today's Topics: > > 1. how to run interconnect network in gems (abbas dehghani) > 2. Re: how to run interconnect network in gems (Tushar Krishna) > 3. 8 processors going into spin wait (SHARAN MORA (RIT Student)) > 4. (no subject) (SHARAN MORA (RIT Student)) > 5. Re: question about reading out a whole DRAM row data (???) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 28 Jan 2013 21:52:39 +0330 > From: abbas dehghani <dehghani.a...@gmail.com> > To: gem5-users@gem5.org > Subject: [gem5-users] how to run interconnect network in gems > Message-ID: > <CAG8=gyZXJyHNR=whte6pabc6jpgoktjwx4jgo+7onackarm...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > hello > I downloaded the gem5.I used the command line > scons build/ALPHA_Network_test/gem5. debug > > It is built gem5 with the Network_test > 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 get many warning and the errors like this: > File "<string>", line 1, in <module> > File > "/media/abbas/532129B46D555824/dehghani/gems/gem5/src/python/m5/main.py", > line 359, in main > File "configs/example/ruby_network_test.py", line 132, in <module> > m5.instantiate() > File > "/media/abbas/532129B46D555824/dehghani/gems/gem5/src/python/m5/simulate.py", > line 106, in instantiate > File > "/media/abbas/532129B46D555824/dehghani/gems/gem5/src/python/m5/SimObject.py", > line 1059, in createCCObject > File > "/media/abbas/532129B46D555824/dehghani/gems/gem5/src/python/m5/SimObject.py", > line 1018, in getCCParams > SystemError: NULL result without error in PyObject_Call > > > could anyone tell me how do I solve the problem? > thanks > please answer > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://m5sim.org/cgi-bin/mailman/private/gem5-users/attachments/20130128/1bd5e91d/attachment-0001.html> > > ------------------------------ > > Message: 2 > Date: Mon, 28 Jan 2013 13:24:30 -0500 > From: Tushar Krishna <tus...@csail.mit.edu> > To: gem5 users mailing list <gem5-users@gem5.org> > Subject: Re: [gem5-users] how to run interconnect network in gems > Message-ID: <27cfb504-a8dc-4dda-9e36-0f09a51d2...@csail.mit.edu> > Content-Type: text/plain; charset=iso-8859-1 > > Make sure you have the correct python and C++ libraries. > Look at the website to see which versions are compatible. > > - Tushar > > On Jan 28, 2013, at 1:22 PM, abbas dehghani wrote: > >> hello >> I downloaded the gem5.I used the command line >> scons build/ALPHA_Network_test/gem5. debug >> >> It is built gem5 with the Network_test >> 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 get many warning and the errors like this: >> File "<string>", line 1, in <module> >> File >> "/media/abbas/532129B46D555824/dehghani/gems/gem5/src/python/m5/main.py", >> line 359, in main >> File "configs/example/ruby_network_test.py", line 132, in <module> >> m5.instantiate() >> File >> "/media/abbas/532129B46D555824/dehghani/gems/gem5/src/python/m5/simulate.py", >> line 106, in instantiate >> File >> "/media/abbas/532129B46D555824/dehghani/gems/gem5/src/python/m5/SimObject.py", >> line 1059, in createCCObject >> File >> "/media/abbas/532129B46D555824/dehghani/gems/gem5/src/python/m5/SimObject.py", >> line 1018, in getCCParams >> SystemError: NULL result without error in PyObject_Call >> >> >> could anyone tell me how do I solve the problem? >> thanks >> please answer >> _______________________________________________ >> gem5-users mailing list >> gem5-users@gem5.org >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > > > > ------------------------------ > > Message: 3 > Date: Mon, 28 Jan 2013 19:21:54 -0500 > From: "SHARAN MORA (RIT Student)" <sxm5...@rit.edu> > To: gem5 users mailing list <gem5-users@gem5.org> > Subject: [gem5-users] 8 processors going into spin wait > Message-ID: > <CAHuO0dWRMPa6=8tUV2=cGeG9ySD89P=irtet054oeauwby-...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > I am trying to run ALPHA in full system mode with 8 processors. When I run, > I get > > warn: clear IPI for CPU=0, but NO IPI > warn: clear IPI for CPU=0, but NO IPI > . > . > > After some time I get > > warn: clear IPI for CPU=0, but NO IPI > warn: clear IPI for CPU=1, but NO IPI > . > . > > How long will it take to run till checkpoint. > > Thanks, > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://m5sim.org/cgi-bin/mailman/private/gem5-users/attachments/20130128/00cb7845/attachment-0001.html> > > ------------------------------ > > Message: 4 > Date: Mon, 28 Jan 2013 19:42:56 -0500 > From: "SHARAN MORA (RIT Student)" <sxm5...@rit.edu> > To: gem5 users mailing list <gem5-users@gem5.org> > Subject: [gem5-users] (no subject) > Message-ID: > <CAHuO0dWTxWJMFz4=MdHUrzZiKhXpvf304fGaR2KHGbOMiV-z=w...@mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > I am not able to build gem5 with python 2.4.3 and swig 2.0.7, even though > dependencies show > python : version 2.4 - 2.7 > swig : version 1.3.34 or newer > > I was able to successfully able to build it on my laptop with python > version 2.7.3, swig 2.0.4. I want to run on my lab system with centos 5. I > am getting python scope error. > > scons: Reading SConscript files ... > Warning: Protocol buffer compiler (protoc) not found. > Please install protobuf-compiler for tracing support. > Checking for leading underscore in global variables...(cached) no > Checking for C header file Python.h... (cached) yes > Checking for C library pthread... (cached) yes > Checking for C library dl... (cached) yes > Checking for C library util... (cached) yes > Checking for C library m... (cached) yes > Checking for C library python2.4... (cached) yes > Checking for accept(0,0,0) in C++ library None... (cached) yes > Checking for zlibVersion() in C++ library z... (cached) yes > Checking for clock_nanosleep(0,0,NULL,NULL) in C library None... (cached) > no > Checking for clock_nanosleep(0,0,NULL,NULL) in C library rt... (cached) yes > Checking for C library tcmalloc_minimal... (cached) no > You can get a 12% performance improvement by installing tcmalloc > (libgoogle-perftools-dev package on Ubuntu or RedHat). > Checking for C header file fenv.h... (cached) yes > Reading SConsopts > Building in /research-storage/users/sxm5916/gem5/build/ALPHA > Using saved variables file > /research-storage/users/sxm5916/gem5/build/variables/ALPHA > scons: done reading SConscript files. > scons: Building targets ... > [ CXX] ALPHA/sim/main.cc -> .o > [ CXX] ALPHA/python/swig/pyevent.cc -> .o > [ CXX] ALPHA/python/swig/pyobject.cc -> .o > [ CXX] ALPHA/python/swig/core_wrap.cc -> .o > build/ALPHA/python/swig/core_wrap.cc:917: warning: 'long int > PyNumber_AsSsize_t(PyObject*, void*)' defined but not used > [ CXX] ALPHA/python/swig/debug_wrap.cc -> .o > build/ALPHA/python/swig/debug_wrap.cc:917: warning: 'long int > PyNumber_AsSsize_t(PyObject*, void*)' defined but not used > [ CXX] ALPHA/python/swig/drain_wrap.cc -> .o > build/ALPHA/python/swig/drain_wrap.cc: In function 'PyObject* > SWIG_From_unsigned_SS_int(unsigned int)': > build/ALPHA/python/swig/drain_wrap.cc:3068: error: 'PyInt_FromSize_t' was > not declared in this scope > build/ALPHA/python/swig/drain_wrap.cc: At global scope: > build/ALPHA/python/swig/drain_wrap.cc:917: warning: 'long int > PyNumber_AsSsize_t(PyObject*, void*)' defined but not used > scons: *** [build/ALPHA/python/swig/drain_wrap.o] Error 1 > scons: building terminated because of errors. > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://m5sim.org/cgi-bin/mailman/private/gem5-users/attachments/20130128/90ba9d22/attachment-0001.html> > > ------------------------------ > > Message: 5 > Date: Tue, 29 Jan 2013 09:58:16 +0800 > From: ??? <shanshuch...@gmail.com> > To: gem5 users mailing list <gem5-users@gem5.org> > Subject: Re: [gem5-users] question about reading out a whole DRAM row > data > Message-ID: > <CALTtWFnLwx=-4a-p-j2zv+sbiegnlprhsahq4pj5rkd8p9a...@mail.gmail.com> > Content-Type: text/plain; charset="gb2312" > > Hi Tao: > > Thanks for your reply. :) > > > Shuchang > > 2013/1/28 Tao Zhang <tao.zhang.0...@gmail.com> > >> ** >> Hi Shuchang, >> >> If we assume the memory space in both host machine and simulator is >> continuous, then we can calculate the row address as follows. >> >> unsigned myRowSize = pkt->getSize() * linesPerRow; >> >> uint8_t* myRowAddr = pmemAddr + (pkt->getAddr() - range.start) / >> myRowSize >> * myRowSize; >> >> or >> >> uint8_t* myRowAddr = pmemAddr + (pkt->getAddr() - pkt->getAddr() % >> myRowSize) - range.start; >> >> -Tao >> >> >> On 01/28/2013 03:18 AM, ??? wrote: >> >> Hi Tao, thanks for your quickly reply. >> >> I have read the codes of function access(PacketPtr pkt) in >> abstract_mem.cc. The main difference is that, in the given function >> access(), the operation is the granularity of a cache line (64-Byte, >> actually it is a specified column of a whole row; while for my codes, I >> want to copy the whole row in to data structure row_data (That's why I >> need >> to multiply another 64. Here the 64 equals the parameter >> linesPerRowBuffer). >> >> In other words, in the function access(), memory access is to only one >> column of a row, while I want to access the entire row. >> >> My concern is that, whether myHostAddr can point to the start address of >> the row (given pkt->getAddr)? >> >> >> >> *=======================================================================* >> *uint8_t *myHostAddr = pmemAddr + (pkt->getAddr() - pkt->getAddr() >> % linesPerRow) - range.start;* >> *=======================================================================* >> * >> * >> Regards, >> Shuchang >> >> 2013/1/28 Tao Zhang <tao.zhang.0...@gmail.com> >> >>> Hi Shuchang, >>> >>> >>> >>> In my opinion, your code are almost correct expect that the >>> pkt->getSize() does return the cacheline size (64 in byte). You don?t >>> need >>> to multiply another 64 again. >>> >>> >>> >>> In fact, AbstractMemory has the function ?access(PacketPtr pkt)? in >>> which >>> the data is also copied. You can read the code between line 352 and 372 >>> in >>> abstract_mem.cc to see how the data is copied. It does almost the same >>> thing as you do. As a result, you can simply extend the AbstractMemory >>> and >>> use the access() to make sure the data is in pkt->getPtr<uint8_t>(); >>> What >>> you only need to do is to copy this data to your raw data pointer. >>> >>> >>> >>> -Tao >>> >>> >>> >>> *From:* gem5-users-boun...@gem5.org [mailto:gem5-users-boun...@gem5.org] >>> *On Behalf Of *??? >>> *Sent:* Sunday, January 27, 2013 6:31 AM >>> *To:* gem5-users@gem5.org >>> *Subject:* [gem5-users] question about reading out a whole DRAM row data >>> >>> >>> >>> Hi all, >>> >>> >>> >>> >>> >>> I am trying to modify the SimpleDRAM module to profile the data contents >>> in phymem. >>> >>> >>> >>> In simple_dram.cc, the *docodeAddr()* function shows how to get the rank >>> and the bank addresses for given request *pkt*. >>> >>> I wonder, given* pkt->getAddr()*, how to calculate the row address? >>> >>> It seems that, a dram row contains 64 (linesPerRow = 64) 64-Byte data >>> blocks, and I want to read out the whole row data into a self-defined >>> data >>> structure ( namely row_data). >>> >>> >>> >>> The detailed codes are like this: >>> >>> >>> >>> *uint8_t *myHostAddr = pmemAddr + (pkt->getAddr() - pkt->getAddr() >>> % linesPerRow) - range.start;* >>> >>> >>> >>> *int row_size = pkt->getSize()*64;* >>> >>> *uint8_t row_data[row_size];* >>> >>> *memcpy(row_data, myHostAddr , row_size ); // read the whole MEM row >>> data out into the array structure: row_data* >>> >>> >>> >>> >>> >>> I am not sure whether the calculation of the row address is right. Any >>> advice will be appreciated. >>> >>> >>> >>> Regards, >>> >>> shuchang >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> gem5-users mailing list >>> gem5-users@gem5.org >>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>> >> >> >> _______________________________________________ >> gem5-users mailing >> listgem5-users@gem5.orghttp://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> >> >> _______________________________________________ >> gem5-users mailing list >> gem5-users@gem5.org >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://m5sim.org/cgi-bin/mailman/private/gem5-users/attachments/20130129/ef6c8c04/attachment.html> > > ------------------------------ > > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > > End of gem5-users Digest, Vol 78, Issue 80 > ****************************************** > _______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users