Giter Club home page Giter Club logo

fused-workloads's Introduction

Fused workloads

Repository containing workloads used in the evaluation of Fused, several of which are ported from the BEEBS project.

Install dependencies (tested on Ubuntu 18.04)

First, install a few tools:

$> sudo apt install libboost-dev build-essential g++ ninja-build gdb

Then install a recent version of CMake (>= version 3.12):

$> wget https://github.com/Kitware/CMake/releases/download/v3.15.4/cmake-3.15.4-Linux-x86_64.sh
$> chmod a+x cmake*.sh
$> sudo ./cmake*.sh --skip-license --prefix=/usr/local

Now download, build & install the MSP430 and Arm GCC toolchains, using CMake (this may take a while):

# in fused-workloads/
$> mkdir build && cd build
$> cmake .. -GNinja -D INSTALL_DEPENDENCIES=ON
$> ninja

By default, this installs to ~/.local, but you can providea different install path with the EP_INSTALL_DIR variable, e.g. -DEP_INSTALL_DIR=${HOME}/fused-workloads-deps.

Before building, we need to set a few environment variables, add these lines to your ~/.bashrc (or your shell's equivalent):

export FUSED_ROOT=<path/to/fused/root> # Optional
export ARM_GCC_ROOT=${HOME}/.local/arm-gcc
export MSP430_GCC_ROOT=${HOME}/.local/msp430-gcc
export MSP430_INC=${HOME}/.local/msp430-inc
export PATH="${HOME}/.local/msp430-gcc/bin:${PATH}"
export PATH="${HOME}/.local/arm-gcc/bin:${PATH}"

Now, disable INSTALL_DEPENDENCIES:

# in fused-workloads/build
$> cmake .. -D INSTALL_DEPENDENCIES=OFF

Build

Simply select a target platform via the TARGET_ARCH variable (cm0 for Arm Cortex-M0 or msp430 for MSP430FR5994) and build:

# in fused-workloads/build
$> cmake .. -GNinja -DINSTALL_DEPENDENCIES=OFF -DTARGET_ARCH=msp430
$> ninja

Once the this has completed, there will be a folder for each benchmark, containing executables with names in the format of

<workload>-<Code section><Data section>-<target architecture (msp430-cm0)>

(you can list the ELF's with ls **/*.elf)

Note: If you want to change the target, e.g. from msp430 to cm0, completely clean the build folder first.

License

This repository combines workloads licensed under several different licenses, see the header of each source file.

fused-workloads's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.