Comments (8)
I'll look into this issue. Could you tell me what OS you are using?
from ramulator.
Linux 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
from ramulator.
Hi, I figure that it is because ramulator requires clang or gcc-5 to compile, which will add -fomit-frame-pointer when -O3 is enabled. mcount unable to keep track of the calling graph when frame pointer is not available so the program crashes.
a workaround is to add '-fno-omit-frame-pointer' to both CCFLAGS and CXXFLAGS
from ramulator.
Thanks for your response i7mist. I tried that solution but it did not help. I still get the same warnings/errors that lead to a segmentation fault :(
from ramulator.
I think it's not those warnings that lead to a segmentation fault. Those warnings are because some variables are not used when assert and debug print are not compiled (like in gem5.prof)
Could you give me more information? How did you add those flags and where did the segfault happen exactly? (can you use gdb to see the backtrace when the program crashes?) Besides, I suggest you set Werror=False in src/SConscript instead of removing Wall, so that you can still know what warning exists in your code. If all of them are about unused variable then just ignore them is fine.
from ramulator.
The problem is that I dont have direct access to the machine I am working on and gdb is not installed. I will ask the supervisor to install it for me but that may take a while.
All the warnings I get are the ones I mentioned above. I got them with the exact way you just described.
I just tried to remove the -O3 flags to disable any optimizations and the problem seems to be resolved (I can run the hello world test...). However I am worried that the full system simulation will take for ever with out the optimizations.
The flags you mentioned I inserted them in the /path/to/gem5/SConstruct in lines 545 and 557 as follow
line 545: main.Append(CCFLAGS=['-fno-strict-aliasing','-fno-omit-frame-pointer'])
line 557: main.Append(CXXFLAGS=['-std=c++11', '-stdlib=libstdc++','-fno-omit-frame-pointer'])
from ramulator.
If you only worried about simulation speed, I think remove -pg can also solve this problem and you can remain -O3... gem5.perf and gem5.fast are compiled with -O3 without -pg
The way you added these flags seems to be correct... I don't have other ideas about what's happening temporarily... Another suggestion for you to test whether these flags will work is to write a very simple c++ program and compile it with clang++ -pg -O3 and clang++ -pg -O3 -fno-omit-frame-pointer respectively. See whether the former will cause a segfault and whether the latter will resolve it.
from ramulator.
Apparently I was not using the latest patch version for gem5. The latest updates (01/23/2016) seem to not have this issue
from ramulator.
Related Issues (20)
- Self Refresh and Refresh Wrong Prerequisites
- core dumped HOT 4
- Why is update_serving_requests for WRITE requests called at the time when they are issued to the DRAM?
- gem5 version 10231 now is unavailable HOT 4
- Does it take care of Cache simulation on the memory trace?
- ramulator
- DRAM trace mode: No mechanism to identify the arrival time of the requests HOT 1
- GDDR5 channel_width should be 32, not 64
- stream read & write requests are handled every 4 cycles? HOT 2
- Heterogeneous Memory can be used in Ramulator?
- Problem with Ramulator. HOT 2
- Problem with Ramulator
- No rule to make target 'obj/.depend'
- Possible wrong address mapping HOT 2
- Error while using Trace Generator tool in Ramulator HOT 2
- Execution getting killed when running using Zsim trace file with 2 billion instructions.
- the cycle for DDR4 need to be updated
- multi-core simulation has a problem in handling writebacks for cache filtered mode
- memory tick function of DDR3 configuration
- deploy rowhammer in the ramulator
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ramulator.