Giter Site home page Giter Site logo

Comments (9)

i7mist avatar i7mist commented on August 30, 2024

Did you add any VectorStat statistics by yourself in ramulator? I guess this is because some VectorStat type statistics object doesn't call init function or use a non-positive value as parameter. (See how is read_row_hits initialized in src/Controller.h if you don't know what is init function)

from ramulator.

astromonk2013 avatar astromonk2013 commented on August 30, 2024

No I didnt change the vectorStat, I am just using the latest ramulator code.
Well I used a different gem5 config script inplace of se.py and looks like i am not getting that error anymore

gem5 compiled Jan 21 2016 12:16:24
gem5 started Jan 21 2016 14:18:12
gem5 executing on prodromou
command line: ./build/X86/gem5.opt ./configs/common/MemConfig.py --mem-type=ramulator --ramulator-config=/home/sobanerje/ramulator-master/configs/DDR3-config.cfg -c tests/test-progs/hello/bin/x86/linux/hello

But when I check m5out, the stats.txt generated doesnt have anything

from ramulator.

ShawnLess avatar ShawnLess commented on August 30, 2024

Seem to be the same problem with me but with slightly different output :

shawnlessdeMacBook-Pro:gem5-stable shawnless$ ./build/X86/gem5.opt ./configs/example/se.py --mem-type=ramulator --ramulator-config=../ramulator/configs/DDR3-config.cfg -c tests/test-progs/hello/bin/x86/linux/hello

gem5 Simulator System. http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 compiled Jan 21 2016 17:31:59
gem5 started Jan 22 2016 10:29:38
gem5 executing on shawnlessdeMacBook-Pro.local
command line: ./build/X86/gem5.opt ./configs/example/se.py --mem-type=ramulator --ramulator-config=../ramulator/configs/DDR3-config.cfg -c tests/test-progs/hello/bin/x86/linux/hello
Global frequency set at 1000000000000 ticks per second
Assertion failed: (s > 0 && "size must be positive!"), function doInit, file build/X86/base/statistics.hh, line 1026.
Program aborted at tick 0
Abort trap: 6

from ramulator.

astromonk2013 avatar astromonk2013 commented on August 30, 2024

Only thing I changed while building gem5 with ramulator was C++ flag -Wno-undefined-bool-conversion to -Wno-bool-conversion as the build was failing as it seems GCC have any " -Wno-undefined-bool-conversion" flag option

from ramulator.

astromonk2013 avatar astromonk2013 commented on August 30, 2024

removed assertion as a temporary solution, works now but ramulator stats in the stats file shows all 0..

from ramulator.

i7mist avatar i7mist commented on August 30, 2024

I think I found the problem. It might be because some statistics added later to ramulator doesn't compatible with gem5 configuration. I'm trying to fix it now and will upload patch as soon as I make it.

from ramulator.

astromonk2013 avatar astromonk2013 commented on August 30, 2024

Thank you.please update.we are waiting fr this issue to be resolved
On Jan 22, 2016 3:01 PM, "i7mist" [email protected] wrote:

I think I found the problem. It might be because some statistics added
later to ramulator doesn't compatible with gem5 configuration. I'm trying
to fix it now and will upload patch as soon as I make it.


Reply to this email directly or view it on GitHub
#21 (comment)
.

from ramulator.

i7mist avatar i7mist commented on August 30, 2024

I think I fixed this problem. please try the latest ramulator source code and gem5 patch and see whether the issue is solved. The problem is because we added some per-core statistics for ramulator multicore mode. Previously, the ramulator wasn't unaware of gem5 cpu number, so those statistics can't be successfully initialized when it is driven by gem5. I change both ramulator and gem5 to fix this issue so please update both ramulator and use the latest patch.

For 0-value statistics: Please run gem5 in a detailed cpu model (e.g. --cpu-type=detailed, timing etc.). You need to explicitly specify that or it will use atomic mode as default mode, which won't use detailed memory model for simulation speed, i.e. ramulator won't be called in that case.

I have tested the following command line and it works well on my machine:
single cpu:

./build/X86/gem5.opt ./configs/example/se.py --mem-type=ramulator --ramulator-config=ext/ramulator/Ramulator/configs/DDR3-config.cfg --cpu-type=detailed --caches -c tests/test-progs/hello/bin/x86/linux/hello

dual cpu:

./build/X86/gem5.opt ./configs/example/se.py --mem-type=ramulator --ramulator-config=ext/ramulator/Ramulator/configs/DDR3-config.cfg --cpu-type=detailed --caches --num-cpus=2 -c "tests/test-progs/hello/bin/x86/linux/hello;tests/test-progs/hello/bin/x86/linux/hello"

from ramulator.

astromonk2013 avatar astromonk2013 commented on August 30, 2024

works!Thank you so much

from ramulator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.