Skip to content

Commit e123625

Browse files
committed
Add docs
1 parent 2064215 commit e123625

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/src/user/advanced.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ julia> @time ForwardDiff.gradient!(out, rosenbrock, x, cfg);
8484
0.281853 seconds (4 allocations: 160 bytes)
8585
```
8686

87+
The underlying heuristic will compute a suitable chunk size smaller or equal
88+
to the `ForwardDiff.DEFAULT_CHUNK_THRESHOLD` constant. As of ForwardDiff
89+
v0.10.32 and Julia 1.6, this constant can be configured at load time via
90+
[Preferences.jl](https://github.com/JuliaPackaging/Preferences.jl) by setting the
91+
`default_chunk_threshold` value.
92+
8793
If your input dimension is constant across calls, you should explicitly select a chunk size
8894
rather than relying on ForwardDiff's heuristic. There are two reasons for this. The first is
8995
that ForwardDiff's heuristic depends only on the input dimension, whereas in reality the

0 commit comments

Comments
 (0)