Crate enzyme[][src]

Expand description

This crate which helps to build and use Enzyme from Rust.

Usage

First, install everything required using:

$ cargo install enzyme
$ install-enzyme

The second command might take a few hours, depending on you cpu.

Afterwards, you can compile a crate using oxide-enzyme with the command

$ cargo enzyme

This is equivalent to a cargo build call in crates not usinng Enzyme. We currently don’t support other configurations, extra parameters will be ignored.

Goals

The goal of this crate is to simplify experimenting with Enzyme in Rust. We are already working on a new iteration which will not require an extra setup step and will support arbitrary Rust code. So please feel free to give feedback and raise issues in our Github, but keep in mind that the will focus on the new oxide-enzyme iteration, rather than fixing all bugs in this one.

Other Languages

C/C++ support is available here.
Julia support is available here.
A code explorer instance for C++ is available here.

Enums

We offer support for downloading and compiling these two repositories.

Functions

A support function to build Enzyme and Rust such that they can be used together.

This function can be used to download and unpack release tarballs.

This function can be used to generate Rust wrappers around Enzyme’s C API.