[gem5-users] Re: How to modify the simulator to load shared libs

2020-06-08 Thread Ciro Santilli via gem5-users
One thing to try if you are desperate: symlink every needed shared library into a directory, and then redirect /lib64 or that directory. I'm pretty sure this should work. I'm not sure why LD_LIBRARY_PATH does not work. I would dig dieeper and try to understand that, theoretically it feels like it

[gem5-users] Debugging Gem5 Segmentation Fault in x86 Decoder

2020-06-08 Thread Saileshwar, Gururaj via gem5-users
Hi All, I am trying to run SPEC-2017 benchmarks (compiled with Clang-3.5), on Gem5 in SE mode (unmodified stable version v20). However, I am getting segmentation faults in the x86 Decoder of Gem5, (free of uninitialized pointer by tcmalloc). The segmentation fault arises from a line in an auto-

[gem5-users] Re: benchmark exits with last active thread context

2020-06-08 Thread Shougang Yuan via gem5-users
Hi, Bobby, Thanks for the reply. I have identified that the reason is the simulator can not load the shared libs used by the benchmark. The benchmark I used needs some shared library and needs to reset the LD_LIBRARY_PATH environment variable. And when I run it with gem5, the error message is "err

[gem5-users] Re: benchmark exits with last active thread context

2020-06-08 Thread Bobby Bruce via gem5-users
Hey Shougang, Can you provide us with a few more details?: - The version of gem5 you are using. - The exact command you are executing. - The benchmarks used (and where they may be obtained, if possible). - The exact output, including error, you received. Kind regards, Bobby -- Dr. Bobby R. Bruce

[gem5-users] Re: How Increase ROI time at gem5?

2020-06-08 Thread Bobby Bruce via gem5-users
Furat, It's been several years since I've played with the PARSEC suite, but some applications can be run (or built?) in a way that increases or decreases their execution time. I know, for example, bodytrack can be tweaked to be slower or faster given depending on how accurate you want your trackin

[gem5-users] How to modify the simulator to load shared libs

2020-06-08 Thread Shougang Yuan via gem5-users
Hi, All, I am currently trying to run some benchmarks that need some shared libs. If I run these benchmarks on physical machines, I need to reset LD_LIBRARY_PATH to load these libs. But when I run the benchmarks with gem5, I tried to use --env options and --redirects options to set LD_LIBRARY_PAT

[gem5-users] Re: Remove/disable stats

2020-06-08 Thread Giacomo Travaglini via gem5-users
No problem! Giacomo P.S For the future, may I suggest you to reply to the message rather than creating a new one? In this way it will be easier for other people to follow the thread if it is interesting to them 😉 -Original Message- From: Øivind Harket Bakke via gem5-users Sent: 08 Jun

[gem5-users] Re: Remove/disable stats

2020-06-08 Thread Øivind Harket Bakke via gem5-users
Hi again Giacomo, that's what I suspected, thank you very much again! Have a great day Øivind ___ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_na

[gem5-users] Re: How to add shared libs that used by benchmarks to the simulator

2020-06-08 Thread Ciro Santilli via gem5-users
OK, the previous --redirects idea makes no sense, nevermind, I wish I could edit emails. On Mon, Jun 8, 2020 at 4:39 PM Ciro Santilli wrote: > > --redirects can be used multiple times. But not 100% sure it will be > able to replace LD_LIBRARY_PATH. Just one thing worth trying along > --redirects

[gem5-users] Re: How to add shared libs that used by benchmarks to the simulator

2020-06-08 Thread Ciro Santilli via gem5-users
--redirects can be used multiple times. But not 100% sure it will be able to replace LD_LIBRARY_PATH. Just one thing worth trying along --redirects /path/in/ld/libray/path=/usr/lib --env does change env vars, but not 100% sure is it enough to make LD_LIBRARY_PATH work. In theory it might, but not s

[gem5-users] Re: Remove/disable stats

2020-06-08 Thread Giacomo Travaglini via gem5-users
Yes I think the commit message is referring to an old version of the patch. Now the option is in https://gem5-review.googlesource.com/c/public/gem5/+/28628/5/configs/common/Options.py which is used by https://gem5-review.googlesource.com/c/public/gem5/+/28628/5/configs/common/Simulation.py#458

[gem5-users] Re: How to add shared libs that used by benchmarks to the simulator

2020-06-08 Thread Shougang Yuan via gem5-users
I do see that forum, but I need to add multiple shared libs with "LD_LIBRARY_PATH" environment variable, can I use multiple redirects to add it multiple times? I mean, Can I use it like "--redirects LD_LIBRARY_PATH=/some/path; --redirects LD_LIBRARY_PATH=/some/path" ? And also, I noticed someone i

[gem5-users] Re: Remove/disable stats

2020-06-08 Thread Øivind Harket Bakke via gem5-users
Hi Giacomo, thanks for your fast reply :) I got the patch and just finished building it. May I ask a quick question though? I actually wasn't allowed to set the --stats-root and I read some of the comments that was written about not having it on the command line options. How do I then set the

[gem5-users] Re: How to add shared libs that used by benchmarks to the simulator

2020-06-08 Thread Ciro Santilli via gem5-users
Have you tried --redirects as mentioned at https://stackoverflow.com/questions/5054/how-to-run-a-dynamically-linked-executable-syscall-emulation-mode-se-py-in-gem5/50696098#50696098 ? On Mon, Jun 8, 2020 at 2:31 PM Shougang Yuan wrote: > > In syscall emulation mode. I tried to use --env optio

[gem5-users] Re: How to add shared libs that used by benchmarks to the simulator

2020-06-08 Thread Shougang Yuan via gem5-users
In syscall emulation mode. I tried to use --env option with myse.py, but it still shows the same error. On Mon, Jun 8, 2020 at 3:39 AM Ciro Santilli wrote: > Syscall emulation or full system? > > On Sun, Jun 7, 2020 at 10:01 PM Shougang Yuan via gem5-users > wrote: > > > > HI, All, > > > > I am

[gem5-users] Re: Remove/disable stats

2020-06-08 Thread Giacomo Travaglini via gem5-users
Hi Oivind I suggest you to have a look at the following patch which is currently under review: https://gem5-review.googlesource.com/c/public/gem5/+/28628 This will make it possible to dump stats starting from a user specified root node (in the simobject hierarchy). For example, if you are just

[gem5-users] Remove/disable stats

2020-06-08 Thread Øivind Harket Bakke via gem5-users
Hi all, I'm trying to remove certain stats from the stats file, but I'm struggling to find an efficient way to do so. Just as an example, for the perBankRdBursts in dram memory, it's to be found in /src/mem/dram_ctrl.cc and .hh. When I'm commenting those out I can't rebuild without getting erro

[gem5-users] Re: How to add shared libs that used by benchmarks to the simulator

2020-06-08 Thread Ciro Santilli via gem5-users
Syscall emulation or full system? On Sun, Jun 7, 2020 at 10:01 PM Shougang Yuan via gem5-users wrote: > > HI, All, > > I am trying to run some benchmarks that need some shared libs, and these > shared libs are imported by setting the environment variables > "LD_LIBRARY_PATH" if I run it on phys