https://github.com/cornell-zhang/heterocl

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

https://github.com/cornell-zhang/heterocl

Science Score: 10.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.6%) to scientific vocabulary

Keywords

accelerators compiler dsl fpga fpga-programming high-level-synthesis python
Last synced: 5 months ago · JSON representation

Repository

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

Basic Info
Statistics
  • Stars: 320
  • Watchers: 17
  • Forks: 93
  • Open Issues: 101
  • Releases: 3
Topics
accelerators compiler dsl fpga fpga-programming high-level-synthesis python
Created about 8 years ago · Last pushed almost 2 years ago
Metadata Files
Readme License

README.md

Note: HeteroCL is superseded by Allo, a new programming language for composable accelerator design [PLDI'24]. For the latest updates, please visit our new repository.

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. <!-- In addition, our framework currently provides two advanced domain-specific optimizations with stencil analysis and systolic array generation, which produce highly efficient microarchitectures for accelerating popular workloads from image processing and deep learning domains. -->

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.

```bash 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 LLVMBUILDDIR=$(pwd)/hcl-dialect/externals/llvm-project/build export PATH=${LLVMBUILDDIR}/bin:${PATH} ```

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

bash python3 -m pytest tests

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.

Owner

  • Name: Cornell Zhang Research Group
  • Login: cornell-zhang
  • Kind: organization

GitHub Events

Total
  • Issues event: 1
  • Watch event: 18
  • Issue comment event: 2
  • Fork event: 3
Last Year
  • Issues event: 1
  • Watch event: 18
  • Issue comment event: 2
  • Fork event: 3

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 1
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 1
  • Total pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • anniezfy (1)
  • yuyuli1 (1)
Pull Request Authors
  • zzzDavid (1)
  • chhzh123 (1)
  • hanchenye (1)
Top Labels
Issue Labels
Pull Request Labels