heterocl

所属分类:VHDL/FPGA/Verilog
开发工具:Python
文件大小:2903KB
下载次数:0
上传日期:2023-05-08 21:17:25
上 传 者sh-1993
说明:  HeteroCL:一种用于软件定义异构计算的多范式编程基础设施
(HeteroCL: A Multi-Paradigm Programming Infrastructure for Software-Defined Heterogeneous Computing)

文件列表:
.circleci (0, 2023-05-09)
.circleci\config.yml (2529, 2023-05-09)
.circleci\task_lint.sh (497, 2023-05-09)
LICENSE (11357, 2023-05-09)
docs (0, 2023-05-09)
docs\.clang-format (4054, 2023-05-09)
docs\Makefile (638, 2023-05-09)
docs\compile_flow_halideir.png (274620, 2023-05-09)
docs\compile_flow_mlir.png (1378311, 2023-05-09)
docs\github-flow.png (85793, 2023-05-09)
docs\lang_overview.png (868076, 2023-05-09)
docs\requirements.txt (136, 2023-05-09)
docs\source (0, 2023-05-09)
docs\source\_static (0, 2023-05-09)
docs\source\conf.py (4462, 2023-05-09)
docs\source\genindex.rst (105, 2023-05-09)
docs\source\index.rst (1595, 2023-05-09)
docs\source\setup (0, 2023-05-09)
docs\source\setup\index.rst (4232, 2023-05-09)
hcl-dialect (0, 2023-05-09)
heterocl (0, 2023-05-09)
heterocl\__init__.py (466, 2023-05-09)
heterocl\ast (0, 2023-05-09)
heterocl\ast\__init__.py (89, 2023-05-09)
heterocl\ast\ast.py (60261, 2023-05-09)
heterocl\ast\ast_visitor.py (8436, 2023-05-09)
heterocl\ast\build_cleaner.py (8657, 2023-05-09)
heterocl\ast\ir_builder.py (74449, 2023-05-09)
heterocl\ast\registry.py (733, 2023-05-09)
heterocl\ast\type_rules.py (22584, 2023-05-09)
heterocl\build_module.py (13181, 2023-05-09)
heterocl\config.py (168, 2023-05-09)
... ...

[![GitHub license](https://dmlc.github.io/img/apache2.svg)](./LICENSE) [![CircleCI](https://circleci.com/gh/cornell-zhang/heterocl/tree/main.svg?style=svg&circle-token=2b5ee9faf30b94aac41b61032d03e4654a65079d)](https://circleci.com/gh/cornell-zhang/heterocl/tree/main) HeteroCL: A Multi-Paradigm Programming Infrastructure for Software-Defined Reconfigurable Computing =================================================================================================== [Website](http://heterocl.csl.cornell.edu/web/index.html) | [Installation](https://cornell-zhang.github.io/heterocl/setup/index.html) | [Tutorials](https://cornell-zhang.github.io/heterocl/index.html) | [Documentation](https://cornell-zhang.github.io/heterocl/index.html) ## 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](docs/lang_overview.png) ## Current Compilation Flow ![flow](docs/compile_flow_mlir.png) ## 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](https://github.com/cornell-zhang/hcl-dialect) 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 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. ```bash python3 -m pytest test ``` ## Related Publications * Debjit Pal, Yi-Hsiang Lai, Shaojie Xiang, Niansong Zhang, Hongzheng Chen, Jeremy Casas, Pasquale Cocchini, Zhenkun Yang, Jin Yang, Louis-Nol Pouchet, Zhiru Zhang. [Accelerator Design with Decoupled Hardware Customizations: Benefits and Challenges](https://www.csl.cornell.edu/~zhiruz/pdfs/hcl-invited-dac2022.pdf). In DAC, 2022. (Invited Paper) * Shaojie Xiang, Yi-Hsiang Lai, Yuan Zhou, Hongzheng Chen, Niansong Zhang, Debjit Pal, Zhiru Zhang. [HeteroFlow: An Accelerator Programming Model with Decoupled Data Placement for Software-Defined FPGAs](https://www.csl.cornell.edu/~zhiruz/pdfs/heteroflow-fpga2022.pdf). In FPGA, 2022. * Yi-Hsiang Lai, Yuze Chi, Yuwei Hu, Jie Wang, Cody Hao Yu, Yuan Zhou, Jason Cong, Zhiru Zhang. [HeteroCL: A Multi-Paradigm Programming Infrastructure for Software-Defined Reconfigurable Computing](https://www.csl.cornell.edu/~zhiruz/pdfs/heterocl-fpga2019.pdf). In FPGA, 2019. (Best Paper Award) ## Related Work * **[MLIR](https://arxiv.org/pdf/2002.11054.pdf)** * **[TVM](https://tvm.ai)** / **[Halide](https://halide-lang.org)** * **[Stencil with Optimized Dataflow Architecture](https://vast.cs.ucla.edu/~chiyuze/pub/iccad18.pdf)** (SODA) * **[Polyhedral-Based Systolic Array Auto-Compilation](http://cadlab.cs.ucla.edu/~jaywang/papers/iccad18-polysa.pdf)** (PolySA) * **[Merlin Compiler](https://www.falconcomputing.com/merlin-fpga-compiler/)** ## Contributing to HeteroCL ### Coding Style (Python) We follow [official Python coding style](https://www.python.org/dev/peps/pep-0008/#descriptive-naming-styles) and use [NumPy docstring style](https://numpydoc.readthedocs.io/en/latest/format.html#other-points-to-keep-in-mind). We use [Black](https://pypi.org/project/black/) and [PyLint](https://pylint.readthedocs.io/) to format Python code. ### Coding Style (C and C++) We follow [Google coding style](https://google.github.io/styleguide/cppguide.htm). Please refer to the [hcl-dialect](https://github.com/cornell-zhang/hcl-dialect) repository for more details.

近期下载者

相关文件


收藏者