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 Simulator: gemmini config variation doesn't change total cycles with the same onnx zoo model #321

Open
eduarfdo230100 opened this issue Dec 30, 2023 · 0 comments

Comments

@eduarfdo230100
Copy link

Hello, I am using the docker image simonguoziruiberkeley/gemmini_mlsys_22 v1.10 to run the chipyard framework in a container. Please, I have doubt when i simulate with Spike different onnx zoo models such as Caffenet and Googlenet, why do I obtain the same total cycles when i only change the DIM parameter in the gemmini configuration parameters? I have done the following steps:
-Change the DIM parameter in /chipyard/generators/gemmini/configs/GemminiCustomConfigs.scala.
-Build the changes with /chipyard/generators/gemmini/scripts/build-spike.sh
-Build files in onnxruntime and ort_test with /chipyard/generators/gemmini/scripts/build-onnx-inference.sh
-Run spike --extension=gemmini pk ort_test -m onnx-models_version1/caffenet-12.onnx -i images/cat.jpg -p caffe2 -x 1 -O 0 in /chipyard/generators/gemmini/software/onnxruntime-riscv/systolic_runner/imagenet_ru
nner, I tried also with caffenet-12-int8.onnx, caffenet-12-qdq.onnx, googlenet-12.onnx and googlenet-12-int8.onnx and I obtain the same total cycles with different values of DIM.
When I run the binary tests for mobilenet (which comes by default) with different value of DIM, I obtain different total cycles and it shows by convolution or multiplication layer.
I understand that when I run an inference with spike it takes the gemmini_params.h directly located in /chipyard/generators/gemmini/software/gemmini-rocc-tests/include, isn't it?

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