Skip to content

Commit

Permalink
Fix staticarrays active bug (#1071)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Sep 23, 2023
1 parent 45bbf24 commit 8d4963c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

[compat]
CEnum = "0.4"
EnzymeCore = "0.5.2"
EnzymeCore = "0.5.3"
Enzyme_jll = "0.0.86"
GPUCompiler = "0.21, 0.22, 0.23, 0.24"
LLVM = "6.1"
Expand Down
2 changes: 1 addition & 1 deletion lib/EnzymeCore/Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "EnzymeCore"
uuid = "f151be2c-9106-41f4-ab19-57ee4f262869"
authors = ["William Moses <wmoses@mit.edu>", "Valentin Churavy <vchuravy@mit.edu>"]
version = "0.5.2"
version = "0.5.3"

[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Expand Down
2 changes: 1 addition & 1 deletion lib/EnzymeCore/src/EnzymeCore.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Enzyme will auto-differentiate in respect `Active` arguments.
struct Active{T} <: Annotation{T}
val::T
@inline Active(x::T1) where {T1} = new{T1}(x)
@inline Active(x::T1) where {T1 <: AbstractArray} = error("Unsupported Active{"*string(T1)*"}, consider Duplicated or Const")
@inline Active(x::T1) where {T1 <: Array} = error("Unsupported Active{"*string(T1)*"}, consider Duplicated or Const")
end
Adapt.adapt_structure(to, x::Active) = Active(adapt(to, x.val))

Expand Down

0 comments on commit 8d4963c

Please sign in to comment.