[gem5-users] Re: Introducing randomness to gem5

2021-11-26 Thread Victor Kariofillis via gem5-users
Hi, Gabriel I'm not interested in a specific gem5 component. I have a microbenchmark that makes use of the srand and rand functions with srand() being seeded by using time. struct timeval t1; gettimeofday(, NULL); srand(t1.tv_usec * t1.tv_sec); I assume that gem5 always uses the same time for

[gem5-users] Introducing randomness to gem5

2021-11-24 Thread Victor Kariofillis via gem5-users
Hi, I have followed the instructions in the post below in order to introduce randomness between different runs of gem5. https://www.mail-archive.com/gem5-users@gem5.org/msg19749.html However, it does not seem to work. I'm producing random numbers in my program by seeding srand with time and

[gem5-users] Re: Gem5 stuck when simulate C++ workload in SE mode

2021-11-22 Thread Victor Kariofillis via gem5-users
Hi Gabriel, I've followed the instructions you have provided but I'm still getting the same numbers on every gem5 run. The changes I made to se.py are the following. + from _m5.core import seedRandom seedRandom(int()) I'm producing random numbers in my program by seeding srand with time srand

[gem5-users] Re: Use xbar stat in BaseCPU

2021-10-22 Thread Victor Kariofillis via gem5-users
ther parse the stats.txt or use the new python stats interface ( > https://gem5.googlesource.com/public/gem5/+/refs/heads/stable/src/python/m5/stats/gem5stats.py#237) > to access stats from your python run script. > > Cheers, > Jason > > On Thu, Oct 21, 2021 at 4:12 PM Victor Kario

[gem5-users] Use xbar stat in BaseCPU

2021-10-21 Thread Victor Kariofillis via gem5-users
Hi, I have created a new stat of type Formula in the xbar.cc/hh files. There I aggregate all the different transDist types. I'd like to use this newly created stat to compute another stat in the BaseCPU object. What is the best way to have access to it (i.e., allTransactions stat) from BaseCPU?

[gem5-users] gem5 Power Model

2021-09-15 Thread Victor Kariofillis via gem5-users
Hi, I have some questions about the power model in gem5. - In what extent is it implemented? I'm mainly interested in a power model for the CPU. Is there one? - I have seen a python configuration script (fs_power.py) for ARM. Is there a power model only for the ARM architecture? - If yes, can it

[gem5-users] Re: 答复: Re: SPEC2017 in FS mode

2021-05-27 Thread Victor Kariofillis via gem5-users
More specifically, it will replace >> gcc_dir = "/opt/rh/devtoolset-7/root/usr" >> by >> gcc_dir = "/usr" >> >> However, in your SPEC 2017 disc, it comes with devtoolset-9 and not >> devtoolset-7. >> >> So, one way to fix that is

[gem5-users] Re: 答复: Re: SPEC2017 in FS mode

2021-05-20 Thread Victor Kariofillis via gem5-users
ou can mount the disk image and check the log file > generated by spec. > > packer fails due to "output directory already exists". In this case, > you'll need to remove the "spec-2017/spec-2017-image" folder before > starting packer again. > > Regards,

[gem5-users] Re: SPEC2017 in FS mode

2021-05-20 Thread Victor Kariofillis via gem5-users
lding process fails. > - After that, you can mount the disk image and check the log file > generated by spec. > > packer fails due to "output directory already exists". In this case, > you'll need to remove the "spec-2017/spec-2017-image" folder before > starting

[gem5-users] SPEC2017 in FS mode

2021-05-17 Thread Victor Kariofillis via gem5-users
Hi, I've tried running the SPEC2017 benchmarks in FS mode of gem5 using the instructions/files provided by the gem5 resources page. https://gem5.googlesource.com/public/gem5-resources/+/refs/heads/stable/src/spec-2017 I've also followed the step by step instructions in the git repo for

[gem5-users] Re: Accessing cache stats during execution

2020-06-30 Thread Victor Kariofillis via gem5-users
at from CPU > > On Fri, Jun 26, 2020 at 4:20 PM Victor Kariofillis via gem5-users < > gem5-users@gem5.org> wrote: > >> Hi, >> >> Building on top of my previous question and making it a bit more general. >> Is there a way to access stats in a somewhat global man

[gem5-users] Re: Accessing cache stats during execution

2020-06-26 Thread Victor Kariofillis via gem5-users
Hi, Building on top of my previous question and making it a bit more general. Is there a way to access stats in a somewhat global manner? Let me explain that with an example. During program execution, I need to know the number of instructions committed and the MPKIs for L1 and L2. On every commit

[gem5-users] Accessing cache stats during execution

2020-06-18 Thread Victor Kariofillis via gem5-users
Hi, I want to run some tests for phase predictors using cache stats (e.g., L1 and L2 MPKIs). I need access to those stats during program execution, in order to both keep a log of these and make predictions based on them. What is the best way to access them? Would this be done through the cache.cc