Skip to content

Commit c4d85f1

Browse files
authored
Merge pull request #2350 from rust-lang/update-autodiff-build-instr
update build and test instructions
2 parents 3ea1fb3 + e74f976 commit c4d85f1

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/autodiff/installation.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ rustup toolchain install nightly # enables -Z unstable-options
2525
You can then run our test cases:
2626

2727
```bash
28-
./x.py test --stage 1 library tests/ui/autodiff
29-
./x.py test --stage 1 library tests/codegen/autodiff
30-
./x.py test --stage 1 library tests/pretty/autodiff*
28+
./x.py test --stage 1 tests/codegen/autodiff
29+
./x.py test --stage 1 tests/pretty/autodiff
30+
./x.py test --stage 1 tests/ui/autodiff
31+
./x.py test --stage 1 tests/ui/feature-gates/feature-gate-autodiff.rs
3132
```
3233

3334
Autodiff is still experimental, so if you want to use it in your own projects, you will need to add `lto="fat"` to your Cargo.toml
@@ -44,7 +45,7 @@ apt install wget vim python3 git curl libssl-dev pkg-config lld ninja-build cmak
4445
```
4546
Then build rustc in a slightly altered way:
4647
```bash
47-
git clone --depth=1 https://github.com/EnzymeAD/rust.git
48+
git clone --depth=1 https://github.com/rust-lang/rust.git
4849
cd rust
4950
./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
5051
./x dist
@@ -54,7 +55,8 @@ We then copy the tarball to our host. The dockerid is the newest entry under `do
5455
docker cp <dockerid>:/rust/build/dist/rust-nightly-x86_64-unknown-linux-gnu.tar.gz rust-nightly-x86_64-unknown-linux-gnu.tar.gz
5556
```
5657
Afterwards we can create a new (pre-release) tag on the EnzymeAD/rust repository and make a PR against the EnzymeAD/enzyme-explorer repository to update the tag.
57-
Remember to ping `tgymnich` on the PR to run his update script.
58+
Remember to ping `tgymnich` on the PR to run his update script. Note: We should archive EnzymeAD/rust and update the instructions here. The explorer should soon
59+
be able to get the rustc toolchain from the official rust servers.
5860

5961

6062
## Build instruction for Enzyme itself

0 commit comments

Comments
 (0)