Questions tagged [gem5]
The gem5 simulator is a modular platform for computer system architecture research, encompassing system-level architecture as well as processor microarchitecture.
429
questions
0
votes
0
answers
4
views
How to install python lib to gem5
I want to call my Python script through pybind11 in gem5. The kafka-python library will be used in my Python script. How can I install the kafka-python library when building gem5?
0
votes
1
answer
15
views
Build failed gem5 with error file not found when the file exists in fact
When I try to build gem5 on wsl2 Ubuntu_20.04, it failed.
I use the steps in this page, and after I command the
scons build/X86/gem5.opt -j9
The build failed with:
scons: Reading SConscript files ...
...
0
votes
0
answers
17
views
gem5 stop PARSEC after specific number of instructions
I am running PARSEC benchmarks on gem5 on top of Linux and I want to stop the simulation for each benchmark after a specific number of instructions (1B). Is there any known way to do this, potentially ...
0
votes
0
answers
37
views
Memory failure when running gem5 SE RISCV code
When I try to run a simulation in SE mode in gem5 I get the following output:
warn: No dot file generated. Please install pydot to generate the dot file and pdf. build/RISCV/mem/mem_interface.cc:791: ...
1
vote
0
answers
22
views
Problem with Running gem5: gem5.opt isn't generated after running /usr/bin/env python3.9 $(which scons) build/RISCV/gem5.opt -no-pie
I am trying to set up gem5 for RISCV on Ubuntu 18.04. I first ran the following commands:
sudo apt install build-essential
apt install m4 zlib1g-dev scons python-six python-dev
git clone https://gem5....
0
votes
0
answers
10
views
How can gem5 add peripherals, such as an SPI, IIC or network card, when simulating arm in the whole system
I read a lot of documents and didn't know how to add peripherals when simulating arm in the whole system. Now I'm very confused. I'm a novice of gem5. I hope you can give me some tips and help
0
votes
0
answers
32
views
RISCV multi-thread in gem5 (SE mode)
Is it possible run multi-threaded applications in gem5 simulator (SE mode)? I noticed that with other ISA (e.g., x86, ARM) it is possible through m5threads library.
However, I did not find any ...
0
votes
0
answers
13
views
Gem5 dirty bit setting, X86 page table walker
I am accessing an array (allocated in stack) like a[0] = 0 etc, and checking for the dirty bit set in page table from OS as I am interested to know the setting of dirty bit in page table using Gem5
...
0
votes
0
answers
28
views
How to fix the error while taking FS checkpoint for Gem5?
I have used the following -
gem5-v21.2.1.0 https://github.com/gem5/gem5/archive/refs/tags/v21.2.1.0.tar.gz
Linux Kernel - http://www.cs.utexas.edu/~parsec_m5/x86_64-vmlinux-2.6.28.4-smp
Disk with ...
0
votes
0
answers
29
views
Some spec2017 benchmarks fail to generate Simpoints
I am generating SimPoint for the benchmark program of spec2017 using gem5. Most of them can be generated normally, but a few benchmark programs do not.
The command I use is:
/usr/local/src/gem5//...
0
votes
0
answers
95
views
Warning while compling Gem5
i am trying to compile gem5 on ubuntu 20.04 OS using below command:
scons build/X86/gem5.opt -j8
i got below warning:
Warning: Header file <png.h> not found.
This host has no libpng library.
...
0
votes
0
answers
48
views
Gem5 v21.2.1.0 build error with hdf5 begin() undefined reference
I was trying to build the gem5 v21.2.1.0 with default configuration and had this error. I could build previous versions of gem5 (v20/v19) without similar issues.
g++:
:: g++ --version
g++ (...
0
votes
0
answers
12
views
Can Gem5 disable some extensions?
I'm using the latest version of Gem5(21.0), can Gem5 choose supported extension when simulation? e.g. I want to disable the compressed extension, how can I archive it?
0
votes
1
answer
26
views
Running valgrind after restoring from a gem5 checkpoint
We are working on a project in gem5, and suspect that there exists a memory leakage in a new memory object that we have implemented. Typically, this is easy enough... launch a compiled gem5.debug ...
0
votes
0
answers
14
views
If some libraries are shared between two processes, will they be stored as one copy or two copies in SE mode?
I have a question: Under SE mode, I run two processes on two different cores (ARM DerivO3CPU, if these are necessary). By using --redirect, both processes can use the same dynamically linked library. ...
0
votes
0
answers
21
views
Where to place the build script in the gem5 boot?
I am following this tutorial https://gem5art.readthedocs.io/en/latest/tutorials/boot-tutorial.html
It is mentioned that it the following code has to be placed in the launch script. I could not find ...
1
vote
1
answer
64
views
docker exit after executing the command?
I need to compile gem5 with the environment inside docker. This is not frequent, and once the compilation is done, I don't need the docker environment anymore.
I have a docker image named gerrie/gem5. ...
0
votes
0
answers
20
views
Bad Floppy disk file Error when trying to run PARSEC on GEM5
I'm trying to run PARSEC on GEM5 by following this tutorial. When trying to build the disk image inside the disk-image folder I run into the following error:
Template validation failed. Errors are ...
1
vote
0
answers
45
views
Register values in ARM exec trace results (from GEM5) when compared with disassembly of the executable
I tried running a simple hello world on ARM and went through the "exec" debug trace. I also used the disassembly of the executable to compare the sequence and register values. While doing so,...
0
votes
0
answers
28
views
How to setup ramulator with gem5?
I found the following setup guide in the ramulator README:
$ hg clone http://repo.gem5.org/gem5-stable
$ cd gem5-stable
$ hg update -c 10231 # Revert to stable version from 5/31/2014 (10231:...
0
votes
0
answers
180
views
Import Error Occurs when Building GEM5 : undefined symbol
I am trying to follow default "Getting Started with GEM5" at the gem5.org
But build fails because of import error.
Especially, it seems /usr/local/lib/python3.6/lib-dynload/_struct.cpython-...
0
votes
0
answers
77
views
Can't rebuild Gem5 cause undefined reference to gem5::GShareBPParams::create()
The error is
build/X86/python/_m5/param_GShareBP.o: In function gem5::module_init(pybind11::module_&)': /home/gem5/ext/pybind11/include/pybind11/pybind11.h:176: undefined reference to gem5::...
0
votes
0
answers
15
views
How to make Pylance recognzize gem5 objects
OS : WSL2 Ubuntu20.04
Editor: VSCode with Pylance
gem5 : gem5 RISCV v21.2.0.0 (commit f554b1a)
Condition: gem5 is working perfectly; Pylance can't recognize the objects in m5.objects
As a newbie to ...
0
votes
0
answers
244
views
gem5 has encountered segmentation fault, how to fix
So I am following the tutorials on https://www.gem5.org/documentation/learning_gem5/part1/extending_configs
but when I build it I get segmentation fault.
This is the code I am trying to compile:
...
0
votes
0
answers
156
views
gem5 simulator failed install, how to install properly and use for ARM simulations
this is my first time trying gem5 and I can't seem to install it properly. I tried these sources:
http://www.m5sim.org/Download
http://www.m5sim.org/Introduction
and these commands:
sudo apt-get ...
1
vote
0
answers
62
views
Running Benchmark in GEM5GCN3
I hope you are well
I use GEM5GCN3 simulator.
I work on heterogeneous systems(CPU-GPU) so I have to run benchmarks on GEM5GCN3.
I used heteromark benchmarks and I ran this command:
sudo docker run --...
0
votes
0
answers
39
views
Simulation abort in Gem5 (PARSEC)
I'm trying to run the PARSEC benchmark on 1 CPU on the gem5 simulator but it crashes at a specific tick which you can see in the screenshot:
and the 529th line is below, but I don't understand why it ...
1
vote
1
answer
54
views
Can't build gem5 (ARM) due to missing -lgrpc++
I am trying to build gem5 (ARM) using
scons build/ARM/gem5.opt -j 1
But I keep getting this error
/usr/bin/ld: cannot find -lgrpc++
collect2: error: ld returned 1 exit status
scons: *** [build/ARM/...
1
vote
0
answers
77
views
Fail to restore the checkpoint in gem5 se mode
I want to use checkpoints to accelerate my simulation. The problem is that when I restore from the checkpoint, the gem5 simulation aborted.
The mode I am using is se mode. I am using m5 pseudo ...
0
votes
0
answers
101
views
Ubuntu 20.04 Using shared library in gem5 simulator
Now I'd plan to run the binary file, which is based on the Intel MKL, on the gem5 simulator. Is there anyway to execute the binary file required the shared library in the gem5?
Below source code is my ...
0
votes
0
answers
44
views
Why gem5 simulation gets killed when running in se mode
I simulate the execution of a sparse matrix multiply program in gem5 SE mode. The problem is that the process always gets killed before finishing the simulation. The command output is like:
43014 ...
0
votes
0
answers
183
views
How to implement a perfect branch predictor in gem5
I am new to gem5 and want to reason about the impact of branch prediction on processor performance.
Now I need to implement a perfect branch predictor in the gem5 ooo CPU model, which means the branch ...
1
vote
1
answer
67
views
gem5: how can i monitor when branch misprediction happened during simulating O3CPU?
I'm currently planning to build a IPC performance counter for Out-Of-Order(O3) CPU using gem5.
I've read a paper about building an accurate performance counter for O3 CPU and the idea is using top-...
0
votes
0
answers
14
views
SCons: How to check if an construction variable is set
I am new to SCons. I want to modify the SConstruct file of gem5 to use clang and clang++ instead of default gcc and g++ compilers. I want to do this by modifying the CC and CXX values of main ...
2
votes
1
answer
43
views
gem5: how to use openssl library in SimlationObject?
I'm try to use Openssl library for gem5.
My SimObject code include two header on Openssl.
#include <openssl/evp.h>
#include <openssl/aes.h>
But there is a link error.
Error message is
...
0
votes
1
answer
44
views
gem5: Use xbar stat in BaseCPU
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 ...
1
vote
0
answers
54
views
Why gem5 output shows that the number of cpu cycle less than the number of instructions simulated?
output of gem5 after run a simple spec test program
I run a spec test case using gem5. It's SE model and with O3CPU. This is the command I run:
/gem5/build/ARM/gem5.opt --outdir=/gem5/spec2006log/...
2
votes
0
answers
157
views
Error with syscall 318 for gem5, when executing with a multi agent reinforcement learning algorithm
I'm trying to execute a python algorithm (https://github.com/shariqiqbal2810/maddpg-pytorch) on gem5 in se mode in X86. But, at first I got an error syscall 318 out of range.
So, I tried to import ...
1
vote
0
answers
32
views
Running application in gem5 full system mode
I tried to run the a program(binary file of hello-world c++ program) in gem5 after booting up the linux but in simulated terminal I get "/tmp/runscript': No such file or directory" error
0
votes
1
answer
95
views
can't build gem5 because of "undefined reference" warnings
I tried to build gem5 on ubuntu 16.04, but I faced the following warnings and building terminated: (I only put one of them here:)
/usr/include/google/protobuf/generated_message_util.h:80: undefined ...
0
votes
0
answers
59
views
Trying to build X86 machine using Gem5
I am trying to install X86 machine using Gem5.
While I try to build the machine I am getting some errors.
I have a computer with 4 Gb Ram. I tried installing all the dependencies mentioned
http://...
1
vote
3
answers
493
views
gem5 build fails with " Embedded python library 3.6 or newer required, found 2.7.17."
I cannot build gem5, when I build gem5,the terminal shows " Embedded python library 3.6 or newer required, found 2.7.17.".However,when I check my python version, I find my python version is ...
0
votes
0
answers
62
views
generate a binary file can run with se.py
I'm trying to generate a binary file to run with se.py, and the following is my command
./build/X86/gem5.opt ./configs/example/se.py -c a.o
where the g++ command is
g++ --static hello.cpp -o a.o
and ...
0
votes
0
answers
90
views
Gem5 in full system running spec2006 runs out of memory
What I am trying to do is run a spec2006 benchmark (namely the 410.bwaves one) in full system mode.
I have made a .rcS script to pass to the fs.py script and the command I type to start the ...
0
votes
0
answers
21
views
How can I activate a 3 level cache hierarchy in GEM5 in SE?
I set up an experiment using cpu2006 benchmarks in SE mode. Based on the output statistics, there is no cache hierarchy in the system. I need to have L1, L2, and. LLC cache. How can I activate the ...
0
votes
1
answer
82
views
failed to build gem5(stt/sdo/invisispec) with old version using scons 0.98.1 and python2.7
ubuntu version 20.04
python --version
Python 2.7.18
scons -version
script: v0.98.1.r2881
engine: v0.98.1.r2881
Since the latest gem5 use python3/scons3.0.0
and i tried the project with old version ...
0
votes
1
answer
391
views
AttributeError: module 'm5' has no attribute 'main'
I'm going through the gem5 tutorial and trying to run gem5 with the following script in Ubuntu 20.04:
build/X86/gem5.opt configs/learning_gem5/part1/simple.py
This is a link to the tutorial:
https://...
0
votes
0
answers
26
views
How does Gem5 handle application pointers for an X86 build?
I have a very simple C code where I am initializing a char variable using malloc and storing a string inside it using strcpy. Then I am simply trying to change the first character of the string. Here ...
0
votes
0
answers
92
views
Error while executing a python script with gem5
I'm trying to execute a python script (specifically maddpg algorithm) on gem5.
Here is my execution process:
(maddpg) kailash@LINC-Quad:~/gem5$ ./build/X86/gem5.opt configs/example/se.py --cmd /usr/...
0
votes
0
answers
91
views
How do different kernel versions change the compilation process of C files (other than by having different versions of gcc)?
I am trying to compile gem5's m5threads, but I am getting compilation errors due to it only being compatible with Linux kernel version 3.19 (and gcc version 4.8). I am using Linux kernel version 5.4, ...