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

Add tutorial software #1447

Merged
merged 1 commit into from
Apr 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions software/tutorial/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
overlay
21 changes: 21 additions & 0 deletions software/tutorial/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

set -ex

CYDIR=$(git rev-parse --show-toplevel)
G_DIR=$CYDIR/generators/gemmini/software/gemmini-rocc-tests
O_DIR=$CYDIR/software/tutorial/overlay/root

echo "Building Gemmini RoCC tests"
cd $G_DIR

./build.sh imagenet
cd build
rm -rf $O_DIR
mkdir -p $O_DIR
cp -r imagenet/resnet50-baremetal $O_DIR/
cp -r imagenet/resnet50-linux $O_DIR/
cp -r imagenet/mobilenet-baremetal $O_DIR/
cp -r imagenet/mobilenet-linux $O_DIR/

echo "Complete!"
8 changes: 8 additions & 0 deletions software/tutorial/marshal-configs/mobilenet-baremetal.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name" : "mobilenet-baremetal",
"base" : "bare-base.json",
"workdir" : "..",
"host-init" : "build.sh",
"bin" : "overlay/root/mobilenet-baremetal",
"spike-args" : "--extension=gemmini"
}
8 changes: 8 additions & 0 deletions software/tutorial/marshal-configs/resnet50-baremetal.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name" : "resnet50-baremetal",
"base" : "bare-base.json",
"workdir" : "..",
"host-init" : "build.sh",
"bin" : "overlay/root/resnet50-baremetal",
"spike-args" : "--extension=gemmini"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name" : "resnet50-linux-interactive",
"base" : "br-base.json",
"workdir" : "..",
"host-init" : "build.sh",
"overlay" : "overlay",
"spike-args" : "--extension=gemmini"
}
9 changes: 9 additions & 0 deletions software/tutorial/marshal-configs/resnet50-linux.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name" : "resnet50-linux",
"base" : "br-base.json",
"workdir" : "..",
"host-init" : "build.sh",
"overlay" : "overlay",
"command" : "/root/resnet50-linux",
"spike-args" : "--extension=gemmini"
}