Skip to content

Commit

Permalink
alt opt pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ZuseZ4 committed Apr 6, 2024
1 parent dc94e58 commit 344fd1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,13 @@ export ENZYME_ENABLE_FNC_OPT=1
export ENZYME_NO_VEC_UNROLL=1
export ENZYME_NO_SAFETY_CHECKS=1
export ENZYME_INLINE=1
export ENZYME_ALT_PIPELINE=1
```
The normal compilation pipeline of Rust-Enzyme is
1) Run your selected compilation pipeline. If you selected a release build, we will disable vectorization and loop unrolling.
2) Differentiate your functions.
3) Run your selected compilation pipeline again on the whole module. This time we do not disable vectorization or loop unrolling.

The alt pipeline will not run opts before AD, but 2x after AD - the first time without vectorization or loop unrolling, the second time with.

The two flags above allow you to adjust this default behaviour.

0 comments on commit 344fd1f

Please sign in to comment.