Giter Club home page Giter Club logo

hardcilk's Introduction

This repo includes the open source code corresponding to the FCCM'24 paper "HardCilk: Cilk-like Task Parallelism for FPGAs"

You can find the paper here. You can find the conference presentation video here.

Installing the Docker image

Run inside the repo directory to build the image

docker build -t evalimage .

Run inside the repo directory to run the image in interactive mode

docker run -it -v "$(pwd)":/mnt evalimage /bin/bash

In the docker image terminal run this command to install necessary libraries

sh /mnt/post-script.sh

Running the architectural generator

The architectural generator enables custom creation of the architecture described in the paper for any arbitrary task parallel algorithm described in Cilk syntax.

  1. Specify the JSON descriptor file for the code you to generate its circuit. An example descriptor for the fib example in the paper can be found in this link.
  2. In the architecture-generator directory run:

    exec sbt "runMain fullSysGen.CommandLineEmitter <path_to_JSON_file>"

  3. You can find the output Verilog files in the output directory under the architecture-generator directory. The output Verilog has AXI4 and AXI-stream interfaces that you can easily integrate with your PEs and memory system. The interfaces are also compliant with the Vivado IP integrator which makes it easier to connect the ports.

Running the paper evaluation

In the docker image terminal run the following command to run the generator server, wait for the server to show that it is running before running the next command

cd ~/repos/HardCilk/architecture-generator/ && exec sbt "runMain fullSysGen.ServerEmitter"

In your device terminal run the following command to get the container id

docker ps

Use the container id to connect to a new terminal instance in the image

docker exec -it <container-id> /bin/bash

Inside the docker image from the new terminal in the ~/repos/HardCilk directory, run the following command to run the HardCilk experiments

python3 run_evaluation.py

hardcilk's People

Contributors

mahfouz-z avatar

Stargazers

Mamoon Syed avatar Yeonan Ha avatar

Watchers

 avatar

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.