Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.
/ enzyme_build Public archive

A repo just containing everything to build a working enzyme/rustc/llvm/clang stack.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

rust-ml/enzyme_build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enzyme build helper

Archived, since it was integrated into Enzyme here: EnzymeAD/Enzyme#519

Goal

This repository will build enzyme/llvm/clang/rustc in the right configuration such that you can use it in combination with oxide-enzyme.

Requirements

  • git
  • ninja
  • cmake
  • libssl-dev
  • libclang-dev
  • Rust (rustup) with an installed nightly toolchain
  • ~10GB free storage in $HOME/.cache

Usage

Build LLVM, the Rust toolchain and Enzyme with

cargo install enzyme && enzyme-install

Depending on your CPU this might take a few hours.
The build process will run enzyme tests, so your last output should look similar to these lines:

Testing Time: 0.63s
Passed : 299
Expectedly Failed: 5

Extras

  • Q: It fails some (all) tests or the build breaks even earlier. Help?
  • A: Sorry. Please open an issue with relevant information (OS, error message) or ping me on the rust-ml Zulip.
     
  • Q: How often do I have to run this? It takes quite a while..
  • A: We are aware of this and working on offering pre-build versions. In the meantime you have to build it once per rust Version. So we will publish an update once 1.58 hits stable.

License

Dual-licensed to be compatible with the Rust project.

Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 or the MIT license http://opensource.org/licenses/MIT, at your option. This file may not be copied, modified, or distributed except according to those terms.

About

A repo just containing everything to build a working enzyme/rustc/llvm/clang stack.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages