Giter Club home page Giter Club logo

xtasks's Introduction

xTasks Library

The xTasks Library provides a common interface to manage OmpSs tasks with a FPGA target regardless the platform and the communication/back-end used. Each platform has different supported back-ends that can be found inside the platform source folder (for example: src/zynq). Please, refer to the platform README file for build instructions.

Configuration File

xTasks Library reads the current FPGA configuration at each application launch from a formatted file. The library looks for this file in the following locations with the same preference order:

  1. Path provided in the XTASKS_CONFIG_FILE environment variable.
  2. /dev/ompss_fpga/bitinfo/xtasks (Only in Zynq boards).
File Format

The configuration file is expected to have the following format:

  • First line contains the headers info.
  • One line for each accelerator type with the following information separated by tabs.
    • Accelerator type identifier (integer number).
    • Number of instances of such type (positive integer number).
    • Description (string, max. 128 chars).
    • Working frequency in MHz (floating point number).

Programming style guide

The library follows the Google style which is verified using the clang-format tool (in Debian based systems can be installed with apt install clang-format). The tools folder contains a couple of scripts that can be used to setup a git pre-hook to check&fix the style of staged changes. To install the git hook you have to run ./tools/git-pre-commit-format install (to uninstall you can do the same but with the uninstall argument). The hook will run during the git commit and it will suggest style fixes if needed.

To apply style to a file, run ./tools/apply-format -i -f <file to format>. This will modify yout file. Run ./tools/apply-format --help for further info`

xtasks's People

Contributors

afilguer avatar jmdeharor avatar metbosch avatar mvidalpinol avatar rcanodiaz avatar

Watchers

 avatar  avatar  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.