Giter VIP home page Giter VIP logo

afocl's Introduction

Scripts to generate the bistream database AFOCL. Meant to be used with PoCL's AlmaIF driver.

Tested with Vivado tool versions 2022.1 and Alveo U280

Build Instructions

To build the database for both Alveo U280.

First you should initialize the FPGA tools so that they are found from the path:

source {XILINX INSTALL DIR}/Vivado/2022.1/settings.sh

If OpenASIP is not installed in ${HOME}/local, you need to set it with variable OPENASIP_INSTALL_DIR. This is needed to override the LD_LIBRARY_PATH and PATH set by sourcing the toolset script. This is done when calling OpenASIP's oacc to compile the firmware.

Then you can run:

make

Usage

The make command generates the 'db' folder, which contains the bitstreams. PoCL's AlmaIF driver needs to be pointed to this folder with the environment variable.

export POCL_DEVICES=almaif
export POCL_ALMAIF0_PARAMETERS=0xF,<path/db>

The magic number 0xF enables the DBDevice backend of the AlmaIF driver.

Now you can execute the example application from {PoCL}/examples/accel/accel_example. Since there are two different built-in kernel implementations in the database, you can choose the built-in kernel you want like this:

{PoCL}/examples/accel/accel_example pocl.add.i32
{PoCL}/examples/accel/accel_example pocl.add.i16

The PoCL will reconfigure the FPGA in between these different kernels.

afocl's People

Contributors

topileppanen avatar

Stargazers

Pierre Kestener avatar

Watchers

Pekka Jääskeläinen avatar  avatar

Forkers

lixiang9716

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.