Giter VIP home page Giter VIP logo

sysu-arch's Issues

Lab 6 的 Build ACCEL-SIM 部分建议加入一些解释

在执行以下两条指令时
source ./gpu-simulator/setup_environment.sh
make -j -C ./gpu-simulator/
可能会出现类似于

nvcc fatal : Unsupported gpu architecture 'compute_10'

等看起来是错误的信息
但根据链接 以上错误是正常的 可以通过在指令中加入 -i 消除这些报错

在Gem5上跑sieve时报错Syscall 334 out of range

执行命令: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

解决方法:

按助教所提供的链接 https://askubuntu.com/questions/1427882/syscall-issues-compiling-x86-c-code-for-gem5-using-ubuntu-22-04

lab 1 Memalloc an Free

在添加MemFreeReq类后重新编译gem5后尝试运行,终端报错如下:
AttributeError: Attribute reference on bound proxy (Parent.eventq_index.getValue)
似乎在m5实例化时出了问题,网上也没有相关描述

LAB1 Familliar with gem5 中的 Malloc and Free LAB 实验在执行前需要重新编译 gem5

LAB1 Familliar with gem5 中的 Malloc and Free LAB 实验在执行前需要重新编译 gem5

问题

我按照教程操作,到了执行的时候报错称无效的 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> 加快编译速度。

lab1 build and simulate 修改cpu model

根据教程找到了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模式的方法

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.