Skip to content

Commit 3b978b8

Browse files
authored
fix: remove ambiguity in BatchSizeSettings with PolyesterForwardDiff (#606)
* fix: remove ambiguity in BatchSizeSettings with PolyesterForwardDiff * Deactivate Enzyme test
1 parent 6f7407c commit 3b978b8

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

DifferentiationInterface/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DifferentiationInterface"
22
uuid = "a0c0ee7d-e4b9-4e03-894e-1c5f64a51d63"
33
authors = ["Guillaume Dalle", "Adrian Hill"]
4-
version = "0.6.18"
4+
version = "0.6.19"
55

66
[deps]
77
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"

DifferentiationInterface/ext/DifferentiationInterfacePolyesterForwardDiffExt/DifferentiationInterfacePolyesterForwardDiffExt.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,12 @@ end
2828

2929
DI.check_available(::AutoPolyesterForwardDiff) = true
3030

31-
function DI.BatchSizeSettings(backend::AutoPolyesterForwardDiff, x_or_N)
32-
return DI.BatchSizeSettings(single_threaded(backend), x_or_N)
31+
function DI.BatchSizeSettings(backend::AutoPolyesterForwardDiff, x::AbstractArray)
32+
return DI.BatchSizeSettings(single_threaded(backend), x)
33+
end
34+
35+
function DI.BatchSizeSettings(backend::AutoPolyesterForwardDiff, N::Integer)
36+
return DI.BatchSizeSettings(single_threaded(backend), N)
3337
end
3438

3539
function DI.threshold_batchsize(

DifferentiationInterface/test/Back/Enzyme/test.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,16 @@ test_differentiation(
4141
logging=LOGGING,
4242
);
4343

44+
#=
45+
# TODO: reactivate closurified tests once Enzyme#2056 is fixed
46+
4447
test_differentiation(
4548
duplicated_backends,
4649
default_scenarios(; include_normal=false, include_closurified=true);
4750
excluded=SECOND_ORDER,
4851
logging=LOGGING,
4952
);
53+
=#
5054

5155
#=
5256
# TODO: reactivate type stability tests

0 commit comments

Comments
 (0)