• Stars
    star
    322
  • Rank 130,398 (Top 3 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created almost 7 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

HeteroCL: A Multi-Paradigm Programming Infrastructure for Software-Defined Heterogeneous Computing

GitHub license CircleCI

HeteroCL: A Multi-Paradigm Programming Infrastructure for Software-Defined Reconfigurable Computing

Website | Installation | Tutorials | Documentation

Introduction

With the pursuit of improving compute performance under strict power constraints, there is an increasing need for deploying applications to heterogeneous hardware architectures with accelerators, such as GPUs and FPGAs. However, although these heterogeneous computing platforms are becoming widely available, they are very difficult to program especially with FPGAs. As a result, the use of such platforms has been limited to a small subset of programmers with specialized hardware knowledge.

To tackle this challenge, we introduce HeteroCL, a programming infrastructure comprised of a Python-based domain-specific language (DSL) and a compilation flow. The HeteroCL DSL provides a clean programming abstraction that decouples algorithm specification from hardware customizations including compute and data customizations. HeteroCL can further capture the interdependence among these different customization techniques, allowing programmers to explore various performance/area/accuracy trade-offs in a systematic and productive manner.

Language Overview

flow

Current Compilation Flow

flow

Install MLIR-based HeteroCL

To install the HeteroCL-MLIR dialect, please make sure you have installed the tools below:

  • gcc >= 5.4
  • cmake >= 3.19
  • python >= 3.7

The following script shows the complete process of building the HeteroCL-MLIR dialect and connecting it with the HeteroCL frontend. It may take about 10 minutes to install the LLVM package depending on the internet connection and the hardware resource of your machine. If you are a HeteroCL developer, please refer to the guide in the HCL-MLIR repository and build the dialect with the Python binding from source.

git clone https://github.com/cornell-zhang/heterocl.git heterocl-mlir
cd heterocl-mlir
git submodule update --init --recursive
pip install . -v
# export LLVM path
export LLVM_BUILD_DIR=$(pwd)/hcl-dialect/externals/llvm-project/build
export PATH=${LLVM_BUILD_DIR}/bin:${PATH}

To verify HeteroCL is installed correctly, you can run the following test.

python3 -m pytest test

Related Publications

Related Work

Contributing to HeteroCL

Coding Style (Python)

We follow official Python coding style and use NumPy docstring style. We use Black and PyLint to format Python code.

Coding Style (C and C++)

We follow Google coding style. Please refer to the hcl-dialect repository for more details.

More Repositories

1

bnn-fpga

Binarized Convolutional Neural Networks on Software-Programmable FPGAs
C
297
star
2

rosetta

Rosetta: A Realistic High-level Synthesis Benchmark Suite for Software Programmable FPGAs
C++
156
star
3

allo

Allo: A Programming Model for Composable Accelerator Design
Python
130
star
4

GraphZoom

GraphZoom: A Multi-level Spectral Approach for Accurate and Scalable Graph Embedding
Python
112
star
5

dnn-quant-ocs

DNN quantization with outlier channel splitting
Python
109
star
6

FracBNN

FracBNN: Accurate and FPGA-Efficient Binary Neural Networks with Fractional Activations
Python
87
star
7

HiSparse

High-Performance Sparse Linear Algebra on HBM-Equipped FPGAs Using HLS
C++
79
star
8

dnn-gating

Conditional channel- and precision-pruning on neural networks
Python
72
star
9

GraphLily

A graph linear algebra overlay
C++
48
star
10

facedetect-fpga

C++
43
star
11

hcl-dialect

HeteroCL-MLIR dialect for accelerator design
C++
40
star
12

GARNET

GARNET: Reduced-Rank Topology Learning for Robust and Scalable Graph Neural Networks
Python
33
star
13

UniSparse

Code base for OOPSLA'24 paper: UniSparse: An Intermediate Language for General Sparse Format Customization
MLIR
28
star
14

Polynormer

Polynormer: Polynomial-Expressive Graph Transformer in Linear Time
Python
28
star
15

quickest

QuickEst repository: Quick Estimation of Quality of Results
Python
26
star
16

uptune

A Generic Distributed Auto-Tuning Infrastructure
Python
21
star
17

HOGA

Hop-Wise Graph Attention for Scalable and Generalizable Learning on Circuits
Python
21
star
18

llm-datatypes

Codebase for ICML'24 paper: Learning from Students: Applying t-Distributions to Explore Accurate and Efficient Formats for LLMs
Python
18
star
19

datuner

DATuner Repository
LLVM
17
star
20

allo-pldi24-artifact

Artifact evaluation of PLDI'24 paper "Allo: A Programming Model for Composable Accelerator Design"
VHDL
14
star
21

GLAIVE

Graph-learning assisted instruction vulnerability estimation published in DATE 2020
C++
13
star
22

tutorial-fccm21

HTML
6
star
23

catalyst2018

Python
3
star