Skip to content

Commit

Permalink
add perf debugging info
Browse files Browse the repository at this point in the history
  • Loading branch information
ZuseZ4 committed Apr 2, 2024
1 parent 08352cd commit ce5b4c7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,14 @@ export ENZYME_PRINT_MOD_AFTER=1
export ENZYME_LOOSE_TYPES=1
```

For performance experiments and benchmarking we also support
```
export ENZYME_NO_MOD_OPT_AFTER=1
export ENZYME_ENABLE_FNC_OPT=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 two flags above allow you to adjust this default behaviour.

0 comments on commit ce5b4c7

Please sign in to comment.