arcsysu / sysu-arch Goto Github PK
View Code? Open in Web Editor NEWSYSU-ARCH is a LAB that focuses on the use and extending of simulators.
Home Page: https://arcsysu.github.io/SYSU-ARCH/
License: GNU General Public License v3.0
SYSU-ARCH is a LAB that focuses on the use and extending of simulators.
Home Page: https://arcsysu.github.io/SYSU-ARCH/
License: GNU General Public License v3.0
执行命令:build/X86/gem5.opt configs/example/se.py --cmd=tests/test-progs/hello/bin/x86/linux/sieve --cpu-type=TimingSimpleCPU --l1d_size=64MB --l1i_size=16MB --caches
报错信息:build/X86/sim/syscall_emul.cc:74: warn: ignoring syscall set_robust_list(...)
build/X86/sim/syscall_desc.hh:209: fatal: Syscall 334 out of range
我按照教程操作,到了执行的时候报错称无效的 debug 标志“MemAlloc”:
$ ~/gem5/build/X86/gem5.opt --debug-flags=MemAlloc ./SYSU-ARCH/assets/LAB1/arch-sysu/MemAlloc.py
gem5 Simulator System. https://www.gem5.org
gem5 is copyrighted software; use the --copyright option for details.
gem5 version 22.0.0.2
gem5 compiled Oct 22 2022 00:39:20
gem5 started Oct 22 2022 10:57:51
gem5 executing on OnewayPC, pid 20319
command line: /home/oneway/gem5/build/X86/gem5.opt --debug-flags=MemAlloc ./SYSU-ARCH/assets/LAB1/arch-sysu/MemAlloc.py
invalid debug flag 'MemAlloc'
查阅 官方教程 得知创建 SimObject 需要重新编译 gem5,重新编译之后再执行就好了。
在实验文档中加上重新编译这一步。另外,建议加入提示,编译 gem5 时可加入参数 -j<cores+1> 加快编译速度。
环境:wsl+Ubuntu20.04、python版本3.8.10
尝试过用pip3安装pydot-1.4.2、pyparsing>=2.1.4和用pip3安装pydot2,均无法解决问题
根据教程找到了X86CPU.py,并且仿照该文件写了以下语句
//隐藏代码
但是在仿真运行的时候提示
se.py: error: argument --cpu-type: invalid choice: 'X86MinorCPU' (choose from 'AtomicSimpleCPU', 'BaseAtomicSimpleCPU', 'BaseMinorCPU', 'BaseNonCachingSimpleCPU', 'BaseO3CPU', 'BaseTimingSimpleCPU', 'DerivO3CPU', 'NonCachingSimpleCPU', 'O3CPU', 'TimingSimpleCPU', 'TraceCPU', 'X86AtomicSimpleCPU', 'X86KvmCPU', 'X86NonCachingSimpleCPU', 'X86O3CPU', 'X86TimingSimpleCPU')
在备选项里没有出现minorcpu,搜索后也没有找到如何更改CPU模式的方法
在执行以下两条指令时
source ./gpu-simulator/setup_environment.sh
make -j -C ./gpu-simulator/
可能会出现类似于
nvcc fatal : Unsupported gpu architecture 'compute_10'
等看起来是错误的信息
但根据链接 以上错误是正常的 可以通过在指令中加入 -i
消除这些报错
在添加MemFreeReq类后重新编译gem5后尝试运行,终端报错如下:
AttributeError: Attribute reference on bound proxy (Parent.eventq_index.getValue)
似乎在m5实例化时出了问题,网上也没有相关描述
试了改成全局常量、宏定义,都是报同样的错。版本Ubuntu21.10,gcc 11.2.0,文件位置在 build/X86/sim/init_signals.cc
const size_t SIGSTKSZ_2 = 2 * SIGSTKSZ;
namespace gem5
{
// Use an separate stack for fatal signal handlers
static uint8_t fatalSigStack[SIGSTKSZ_2];
...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.