Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spike不能直接使用命令行执行 #30

Open
ziliangzl opened this issue Apr 12, 2024 · 1 comment
Open

spike不能直接使用命令行执行 #30

ziliangzl opened this issue Apr 12, 2024 · 1 comment

Comments

@ziliangzl
Copy link

当尝试使用命令行执行spike时,我遇到了一些困难,我发现它似乎不能直接在命令行中执行,在尝试手动使用spike命令行执行测试的时候报错如下:

./spike -l --log-commits -p512 --isa rv32gcv_zfh --pc=0x80000000 -m0x70000000:0
x94042000 --varch vlen:1024,elen:32 --gpgpuarch numw:1,numt:32,numwg:512,kernelx:512,kernely:1,kernelz:1,ldssize:0x1000,pdssize:0x10000000,pdsbas
e:0x90041000,knlbase:0x94041000,currwgid:0 --log=object.riscv.log /home/zzl/Project/Ventus/OpenCL-CTS/build/test_conformance/basic/cache/object.riscv
spike: ../riscv/sim.cc:121: sim_t::sim_t(const cfg_t *, bool, std::vector<std::pair<reg_t, mem_t *>>, std::vector<std::pair<reg_t, abstract_device_t *>>, const std::vector<std::string> &, const debug_module_config_t &, const char *, bool, const char *, FILE *): Assertion `w.warp_number * w.workgroup_number == cfg->nprocs()' failed.

如果spike能够使用命令行执行的话,请告知使用方法

@ziliangzl
Copy link
Author

我尝试编译spike的步骤如下:

mkdir build-bin
cd build-bin
../configure
make -j10

需要执行的测试在OpenCL-CTS中test_conformance/basic/test_intmath.cpp
构建OpenCL-CTS的方法可以参考https://github.com/KhronosGroup/OpenCL-CTS/tree/main
编译OpenCL-CTS后执行

./OpenCL-CTS/build/test_conformance/basic/test_basic intmath_int

即可得到object.riscv
然后尝试执行spike:

./spike -l --log-commits -p512 --isa rv32gcv_zfh --pc=0x80000000 -m0x70000000:0x94042000 --varch vlen:1024,elen:32 --gpgpuarch numw:1,numt:32,numwg:512,kernelx:512,kernely:1,kernelz:1,ldssize:0x1000,pdssize:0x10000000,pdsbase:0x90041000,knlbase:0x94041000,currwgid:0 --log=object.riscv.log /home/zzl/Project/Ventus/OpenCL-CTS/build/test_conformance/basic/cache/object.riscv

得到如下报错:

spike: ../riscv/sim.cc:121: sim_t::sim_t(const cfg_t *, bool, std::vector<std::pair<reg_t, mem_t *>>, std::vector<std::pair<reg_t, abstract_device_t *>>, const std::vector<std::string> &, const debug_module_config_t &, const char *, bool, const char *, FILE *): Assertion `w.warp_number * w.workgroup_number == cfg->nprocs()' failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant