Powered by OpenAIRE graph
Found an issue? Give us feedback
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/ ZENODOarrow_drop_down
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/
ZENODO
Conference object . 2025
License: CC BY
Data sources: ZENODO
ZENODO
Article . 2025
License: CC BY
Data sources: Datacite
ZENODO
Article . 2025
License: CC BY
Data sources: Datacite
versions View all 2 versions
addClaim

Towards Offloading C/C++ Kernels and ONNX Models to CGRAs through MLIR

Authors: Neto, Nelson; Ferreira, José Pedro; Gonçalo Correia, Pedro; Rodriguez, Alfonso; Otero, Andrés; Paulino, Nuno; Bispo, João;

Towards Offloading C/C++ Kernels and ONNX Models to CGRAs through MLIR

Abstract

Efficient execution of Artificial Intelligence (AI) workloads in edge environments with constrained energy and compute resources is crucial due to the growing adoption of edge AI across various domains. Coarse Grained Reconfigurable Arrays (CGRAs) offer a balance between hardware specialization and flexibility, enabling instruction and data parallelism by spatially distributing computation while leveraging data locality through distributed memory. CGRAs have focused on optimizing inner loops of kernels written in programming languages like C, but since AI models are expressed in different formats, new compilation techniques are necessary to fully exploit the benefits offered by CGRAs for edge AI needs. In this paper, we present our Multi Level Intermediate Representation (MLIR) based approach to extract and compile workloads from either C/C++ or Open Neural Network Exchange (ONNX) models to a RISC-V based system with a CGRA acting as an accelerator. Data Flow Graph (DFG) representations of the extracted computations are used to generate CGRA configurations through conventional mapping, and an additional MLIR-based backend enables producing binaries where the RISC-V interfaces with the CGRA through custom instructions.

Keywords

Compilers, ONNX, MLIR, RISC-V, CGRA

  • BIP!
    Impact byBIP!
    selected citations
    These citations are derived from selected sources.
    This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    0
    popularity
    This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
    Average
    influence
    This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    Average
    impulse
    This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
    Average
Powered by OpenAIRE graph
Found an issue? Give us feedback
selected citations
These citations are derived from selected sources.
This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Citations provided by BIP!
popularity
This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
BIP!Popularity provided by BIP!
influence
This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Influence provided by BIP!
impulse
This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
BIP!Impulse provided by BIP!
0
Average
Average
Average
Green