Skip to content

Commit

Permalink
Merge pull request #8 from vtjnash/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
ZuseZ4 authored Feb 23, 2023
2 parents 16010f8 + e863bf4 commit 366cb56
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
# The Rust Programming Language
# The Rust Programming Language +Enzyme

This is the main source code repository for [Rust]. It contains the compiler,
standard library, and documentation. It is modified to use Enzyme for AutoDiff.

Please configure this fork using the following command:

```
./configure --enable-llvm-link-shared --enable-llvm-plugins --enable-llvm-enzyme --release-channel=nightly --enable-llvm-assertions --enable-clang --enable-lld --enable-option-checking --enable-ninja --disable-docs
mkdir build
cd build
../configure --enable-llvm-link-shared --enable-llvm-plugins --enable-llvm-enzyme --release-channel=nightly --enable-llvm-assertions --enable-clang --enable-lld --enable-option-checking --enable-ninja --disable-docs
```

Afterwards you can build rustc using:
```
x build --stage 1 library/std
../x.py build --stage 1 library/std
```

Afterwards rustc toolchain link will allow you to use it trough cargo (adjust path):
Afterwards rustc toolchain link will allow you to use it through cargo:
```
rustup toolchain link enzyme /home/drehwald/prog/rust/build/x86_64-unknown-linux-gnu/stage1
rustup toolchain link enzyme `pwd`/build/`rustup target list --installed`/stage1
rustup toolchain install nightly # enables -Z unstable-options
```

[Rust]: https://www.rust-lang.org
Expand Down

0 comments on commit 366cb56

Please sign in to comment.