Giter VIP home page Giter VIP logo

wenming2014 / enzyme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from enzymead/enzyme

0.0 1.0 0.0 626.27 MB

High-performance automatic differentiation of LLVM.

Home Page: https://enzyme.mit.edu

License: Other

CMake 0.33% C++ 47.28% C# 0.02% Python 1.50% Batchfile 0.01% Emacs Lisp 0.01% C 11.09% Objective-C 1.27% Objective-C++ 0.41% HTML 4.08% MATLAB 0.01% Forth 0.01% Mercury 0.01% LLVM 24.68% Assembly 9.22% Cuda 0.10% Rust 0.01% Mathematica 0.01% M 0.01% Cool 0.01%

enzyme's Introduction

The Enzyme High-Performance Automatic Differentiator of LLVM

Enzyme is a plugin that performs automatic differentiation (AD) of statically analyzable LLVM.

Enzyme can be used by calling __enzyme_autodiff on a function to be differentiated as shown below. Running the Enzyme transformation pass then replaces the call to __enzyme_autodiff with the gradient of its first argument.

double foo(double);

double grad_foo(double x) {
    return __enzyme_autodiff(foo, x);
}

Enzyme is highly-efficient and its ability to perform AD on optimized code allows Enzyme to meet or exceed the performance of state-of-the-art AD tools.

Detailed information on installing and using Enzyme can be found on our website: https://enzyme.mit.edu.

A short example of how to install Enzyme is below:

cd /path/to/Enzyme/enzyme
mkdir build && cd build
cmake -G Ninja .. -DLLVM_DIR=/path/to/llvm/lib/cmake/llvm -DLLVM_EXTERNAL_LIT=/path/to/lit/lit.py
ninja

To get involved or if you have questions, please join our mailing list.

If using this code in an academic setting, please cite the following:

@incollection{enzymeNeurips,
title = {Instead of Rewriting Foreign Code for Machine Learning, Automatically Synthesize Fast Gradients},
author = {Moses, William S. and Churavy, Valentin},
booktitle = {Advances in Neural Information Processing Systems 33},
year = {2020},
note = {To appear in},
}

Julia bindings for Enzyme are available here

enzyme's People

Contributors

lattner avatar espindola avatar tkremenek avatar topperc avatar ddunbar avatar douggregor avatar rui314 avatar d0k avatar chandlerc avatar zygoloid avatar isanbard avatar rksimon avatar echristo avatar rotateright avatar chapuni avatar dwblaikie avatar stoklund avatar arsenm avatar akyrtzi avatar rnk avatar eefriedman avatar tobiasgrosser avatar resistor avatar majnemer avatar kcc avatar ericwf avatar rjmccall avatar nlewycky avatar djasper avatar dexonsmith avatar

Watchers

James Cloos 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.