Giter Site home page Giter Site logo

rsqp's Introduction

The Reconfigurable Solver for QP

RSQP is a framework for generating FPGA solvers for QPs. Some off-the-shelf bitstreams are provided to solve generic QPs. If the sparsity strucutre of QPs to be solved are known, RSQP can analyze the sparsity structure and build a customized FPGA architecture for extra speed boost while solving a series of QPs with the same sparsity pattern.

System Requirements

This framework requries the following system specifications to run:

  • Operating System: Ubuntu 18.04
  • FPGA Card: Alevo U50 or U280

Please check this guide for detailed steps of installing the FPGA card. To verify the installation, first run the following command to make sure the card is visable:

xbutil query

Part 1. Hello Solver

A pre-synthesised FPGA architecture is in the bitstream folder. The pre-compiled binary of QP problem to run on this architecture is in the elf folder. Run the following script to see the solver in action ๐Ÿš€

./fpga-solve.sh -sw=svm-s10-2-bf-949-194.fpga -hw=u50-2-bf-3259-275.xclbin

Part 2. Compile a QP to Run on an Off-the-shelf Architecture

Generating the elf file:

./sw-elf-gen.sh -c=2 -a=bf -start=10 -end=10

To check solver states (values of each vector) in each step, run the functional simulation of the elf:

./hw-hls-gen.sh -v=1 -c=2 -a=bf -cvb=3259 -vec=275

./func-sim.sh -sw=svm-s10-2-bf-949-194.fpga -hw=hbm2-bf-3259-275

Part 3. Synthesis a Customzied Architecture for a Specific Sparsity Pattern

To synthesis a new FPGA architecture, Vitis 2021.1 is needed. Install the tool using this guide.

./hw-hls-gen.sh -c=2 -a=bf -cvb=3259 -vec=275 -b=u50 -g=1

Results

Citation

If you found our work useful in your research, please consider citing our paper at

@inproceedings{rsqp,
Author = {Wang, Maolin and McInerney, Ian and Stellato, Bartolomeo and Boyd, Stephen and So, Hayden},
Title = {RSQP: Problem-specific Architectural Customization for Accelerated Convex Quadratic Optimization},
Booktitle  = {2023 ACM/IEEE 50th Annual International Symposium on Computer Architecture (ISCA)},
Year = {2023}
}

rsqp's People

Contributors

wangmaolin avatar

Stargazers

Taro Tako avatar  avatar Frieden_Ls avatar Andrea Nardi avatar Takefumi MIYOSHI avatar

Watchers

 avatar

Forkers

phildong

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.