Skip to content

Commit

Permalink
Simplify make zero (#1063)
Browse files Browse the repository at this point in the history
* Rebase

* Fixupg

* Cleanup

* fixup

* Further simplify

* fix function subty

* fix

* Fix <=1.8
  • Loading branch information
wsmoses authored and michel2323 committed Nov 7, 2023
1 parent de488d5 commit 8fa5ab8
Show file tree
Hide file tree
Showing 8 changed files with 108 additions and 179 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.3"
EnzymeCore = "0.6.0"
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 <[email protected]>", "Valentin Churavy <[email protected]>"]
version = "0.5.3"
version = "0.6.0"

[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Expand Down
7 changes: 7 additions & 0 deletions lib/EnzymeCore/src/rules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -213,4 +213,11 @@ function is_inactive_noinl_from_sig(@nospecialize(TT);
return isapplicable(inactive_noinl, TT; world, method_table, caller)
end

"""
inactive_type(::Type{Ty})
Mark a particular type `Ty` as always being inactive.
"""
inactive_type(::Type{Ty}) where Ty = false

end # EnzymeRules
2 changes: 1 addition & 1 deletion lib/EnzymeTestUtils/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
[compat]
ConstructionBase = "1.4.1"
Enzyme = "0.11"
EnzymeCore = "0.5"
EnzymeCore = "0.5, 0.6"
FiniteDifferences = "0.12.12"
MetaTesting = "0.1"
Quaternions = "0.7"
Expand Down
Loading

0 comments on commit 8fa5ab8

Please sign in to comment.