Git Product home page Git Product logo

htm's Introduction

HTM

HTM is a Halide language To MLIR compiler which converts the applications written in Halide to MLIR.
This project targets acquiring performance boost on Halide through the conversion to MLIR. With this conversion, we can benefit from MLIR with its main property, namely "Dialect", which is able to performing abstraction on operations(instructions) at different level of granularities, thus the data is able to be well-structurized on every stages during operation(instruction) lowering as well as transformation passes to obtain more opportunities on potential optimizations and conversions on the application.

How to run HTM?

To build HTM, MLIRX and HalideX are needed. We've provided a script to automatically build the entire project and all of dependencies that needed.

Prerequisite:

Please simply clone this project and run the following commands step by step:
(Note that it may takes an hour or half to build, please be patient.)

$ git clone https://github.com/songwu0813/HTM.git
$ cd HTM
$ . scripts/setup.sh
$ ./scripts/build_project.sh

After building processes finished, you can run the apps in Halide, this project already provided some samples, to build the app, please run the following commands:

$ cd apps/<app name>
$ mkdir build && cd build
$ cmake .. && cmake --build .
$ cp ../*.png .
$ ./runme

The corresponding MLIR file(runme.mlir or something) then will be generated, developer can either take this file for further optimization using MLIR or execute directly through the interpreter provided by LLVM, we also provide the script for doing this. Run the following command under same build directory:

$ ../../../scripts/run_mlir.sh <file name>.mlir

htm's People

Contributors

4vtomat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.