Skip to content

Commit 55403f7

Browse files
Merge pull request #1139 from yolhan83/add_new_bench_loop_diff_ad_sparse
correct parsing of the DF
2 parents 40c4bce + c5ceed2 commit 55403f7

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

benchmarks/AutomaticDifferentiationSparse/Manifest.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
julia_version = "1.10.7"
44
manifest_format = "2.0"
5-
project_hash = "6b7ebd48c2ddf019d078dc63bd6da748e01f3c72"
5+
project_hash = "66c017de4feba5a1b0f262d272a495d3a07cb06d"
66

77
[[deps.ADTypes]]
88
git-tree-sha1 = "72af59f5b8f09faee36b4ec48e014a79210f2f4f"

benchmarks/AutomaticDifferentiationSparse/ManualLoopDissusionSparseAD.jmd

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ using LinearAlgebra
1010
using SparseConnectivityTracer: TracerSparsityDetector
1111
using SparseMatrixColorings
1212
import Enzyme,ForwardDiff,Mooncake
13+
import Markdown, PrettyTables, Printf
1314
```
1415

1516
## Backends tested
@@ -79,4 +80,13 @@ scenarios = [ Scenario{:jacobian,:out}(Diffusion,u,res1=DDiffusion(u))];
7980

8081
```julia
8182
df = benchmark_differentiation(bcks, scenarios)
83+
table = PrettyTables.pretty_table(
84+
String,
85+
df;
86+
backend=Val(:markdown),
87+
header=names(df),
88+
formatters=PrettyTables.ft_printf("%.1e"),
89+
)
90+
91+
Markdown.parse(table)
8292
```

benchmarks/AutomaticDifferentiationSparse/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1010
Mooncake = "da2b9cff-9c12-43a0-ae48-6db2b0edb7d6"
1111
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
1212
PreallocationTools = "d236fae5-4411-538c-8e31-a6e3d9e00b46"
13+
PrettyTables = "08abe8d2-0d0c-5749-adfa-8a2ac140af0d"
1314
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1415
SparseConnectivityTracer = "9f842d2f-2579-4b1d-911e-f412cf18a3f5"
1516
SparseDiffTools = "47a9eef4-7e08-11e9-0b38-333d64bd3804"

0 commit comments

Comments
 (0)