StanfordAHA / CGRAFlow

Integration test for entire CGRA flow
BSD 3-Clause "New" or "Revised" License
12 stars 2 forks source link

CGRAFlow Build Status

Integration (end-to-end) test for entire CGRA build-and-run flow. Specific to first-generation (Genesis2-based) CGRA only. For second generation flow see ?

Local Setup

On generic Ubuntu machine

NOTE: All these commands assume you are in the root directory of the CGRAFlow repo. Ideally this wouldn't be the case, please feel free to submit a patch to resolve these issues.

  1. Install dependencies

    source scripts/setenv.sh
    ./scripts/install_machine_deps.sh
    ./scripts/install_locally.sh
  2. Setup your environment (you'll need to do this any time you start a new shell), note that this script expects an environment variable CGRAFLOW_PATH that points to the directory where install.sh was run (typically something like export CGRAFLOW_PATH=$HOME/CGRAFlow).

    source scripts/setenv.sh
  3. Now you should be able to run the tests Note you'll need to explicitly set the CC and CXX variables for make to use the right version of GCC

    make CC=gcc-4.9 CXX=g++-4.9 CGRA_SIZE=8x8 build/pointwise.correct.txt

On Kiwi

  1. Running the following commands will set all needed environment variables and

    git clone https://github.com/StanfordAHA/CGRAFlow.git
    bash
    source scripts/kiwi_setenv.sh
    source scripts/install_locally.sh
  2. Now you should be able to run the tests

    source scripts/kiwi_setenv.sh
    make cgra_pnr_tests