Skip to content

Commit

Permalink
Merge pull request #177 from ucb-bar/dev
Browse files Browse the repository at this point in the history
* Fix compilation errors for large floating-point configs
* Disable on-demand paging for proxy-kernel workloads, because on-demand paging doesn't work well with large binaries
* Change CI from CircleCI to GitHub Actions
  • Loading branch information
hngenc authored Dec 20, 2021
2 parents 9ff9c50 + ff8c78b commit 69242c9
Show file tree
Hide file tree
Showing 20 changed files with 179 additions and 264 deletions.
179 changes: 0 additions & 179 deletions .circleci/config.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .circleci/create-hash.sh

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ set -ex
SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )"
source $SCRIPT_DIR/defaults.sh

if [ ! -d "$HOME/$1-install" ]; then
INSTALL_DIR="$HOME/$1-install"

if [ ! -d "$INSTALL_DIR" ]; then
cd $HOME

git clone --progress --verbose https://github.com/ucb-bar/chipyard.git chipyard
Expand All @@ -30,3 +32,4 @@ if [ ! -d "$HOME/$1-install" ]; then
# init all submodules including the tools (doesn't use CI_MAKE_PROC due to mem. constraints)
CHIPYARD_DIR="$LOCAL_CHIPYARD_DIR" NPROC=$CI_MAKE_NPROC $LOCAL_CHIPYARD_DIR/scripts/build-toolchains.sh esp-tools
fi

12 changes: 8 additions & 4 deletions .circleci/defaults.sh → .github/scripts/defaults.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,17 @@ VERILATOR_VERSION=v4.034

# local variables (aka within the docker container)
LOCAL_WORK_DIR=$HOME
LOCAL_CHECKOUT_DIR=$HOME/project
LOCAL_CHECKOUT_DIR=$GITHUB_WORKSPACE/
LOCAL_RISCV_DIR=$HOME/riscv-tools-install
LOCAL_ESP_DIR=$HOME/esp-tools-install
LOCAL_CHIPYARD_DIR=$HOME/chipyard
LOCAL_SIM_DIR=$LOCAL_CHIPYARD_DIR/sims/verilator
LOCAL_VERILATOR_DIR=$HOME/verilator-install

# api url to do curls
API_URL=https://circleci.com/api/v2

echo "::set-output name=LOCAL_WORK_DIR::$LOCAL_WORK_DIR"
echo "::set-output name=LOCAL_CHECKOUT_DIR::$LOCAL_CHECKOUT_DIR"
echo "::set-output name=LOCAL_RISCV_DIR::$LOCAL_RISCV_DIR"
echo "::set-output name=LOCAL_ESP_DIR::$LOCAL_ESP_DIR"
echo "::set-output name=LOCAL_CHIPYARD_DIR::$LOCAL_CHIPYARD_DIR"
echo "::set-output name=LOCAL_SIM_DIR::$LOCAL_SIM_DIR"
echo "::set-output name=LOCAL_VERILATOR_DIR::$LOCAL_VERILATOR_DIR"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ source $SCRIPT_DIR/defaults.sh
TOOLS_DIR=$LOCAL_ESP_DIR
PATH=$PATH:$LOCAL_ESP_DIR/bin

git clone git@github.com:ucb-bar/esp-isa-sim.git
git clone https://github.com/ucb-bar/esp-isa-sim.git
cd esp-isa-sim
git checkout $(cat $LOCAL_CHECKOUT_DIR/SPIKE.hash)
cp $LOCAL_CHIPYARD_DIR/generators/gemmini/software/gemmini-rocc-tests/include/gemmini_params.h gemmini/
Expand Down
Loading

0 comments on commit 69242c9

Please sign in to comment.