Giter Club home page Giter Club logo

fpga_cpu_harp2's Introduction

FPGA_CPU_HARP2

Overview

Our goal is to explore OpenCL on a CPU-FPGA Heterogeneous Architecture Research Platform (HARP). These applications are designed to use the latest features of heterogeneous architectures such as Shared Virtual Memory (SVM).

Usage

Clone the repo and copy to your own directories in vLab:

git clone https://github.com/jjiantong/fpga_cpu_harp2.git
scp -r FPGA_CPU_HARP2 [email protected]:/homes/$USER/

Connect to the vLab access node ssh-iam.intel-research.net:

We support two FPGA classes: fpga-bdx-opencl and fpga-pac-a10.

1. For fpga-bdx-opencl class

The source code for fpga-bdx-opencl is in the bdx-opencl directory.

Configure an OpenCL environment:

source /export/fpga/bin/setup-fpga-env fpga-bdx-opencl
qsub-fpga

Compile the host program:

cd fpga_cpu_harp2/bdx-opencl/$APP/
make

Compile the OpenCL kernel:

cd device
qsub-aoc $NAME.cl

You can check the status by running the command qstat. When the job complete, you can find a directory $NAME, files $NAME.aoco, $NAME.aocx, and the related log files.

Move $NAME.aocx to the bin directory.

Execute the compiled design:

cd fpga_cpu_harp2/bdx-opencl/$APP
./bin/$EXEC

2. For fpga-pac-a10 class

The source code for fpga-pac-a10 is in the pac-a10 directory.

Configure an OpenCL environment:

source /export/fpga/bin/setup-fpga-env fpga-pac-a10
qsub-fpga

Compile the host program:

cd fpga_cpu_harp2/pac-a10/$APP/
make

Compile the OpenCL kernel:

cd device
qsub-aoc $NAME.cl

You can check the status by running the command qstat. When the job complete, you can find a directory $NAME, files $NAME.aoco, $NAME.aocx, and the related log files.

Move $NAME.aocx to the bin directory.

Execute the compiled design:

cd fpga_cpu_harp2/pac-a10/$APP
./bin/$EXEC

Notes

  1. Atomics not supported in systems with multiported memories. Therefore, for RSCD application, we have to use the near-optimal execution model (SWI+C), instead of the optimal execution model (NDR+C).
  2. Due to atomic operations, SVM cannot be used to share buffers between the CPU and the FPGA for some variables in the RSCD application.
  3. PAC A10 does not seem to support the OpenCL channel.

fpga_cpu_harp2's People

Contributors

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