Skip to content

Commit

Permalink
runtime activity lookup on val not type (#1862)
Browse files Browse the repository at this point in the history
* runtime activity lookup on val not type

* fix

---------

Co-authored-by: William Moses <wsmoses@cyclops.juliacomputing.io>
  • Loading branch information
wsmoses and William Moses authored Sep 19, 2024
1 parent 6e867ba commit 5a5beea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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.8.0"
version = "0.8.1"

[compat]
Adapt = "3, 4"
Expand Down
2 changes: 1 addition & 1 deletion lib/EnzymeCore/src/rules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,6 @@ Mark a particular type `Ty` as always being inactive.
"""
inactive_type(::Type) = false

@inline EnzymeCore.set_runtime_activity(::M, ::Config) where {M<:Mode, Config <: Union{FwdConfig, RevConfig}} = EnzymeCore.set_runtime_activity(M, runtime_activity(Config))
@inline EnzymeCore.set_runtime_activity(mode::M, config::Config) where {M<:Mode, Config <: Union{FwdConfig, RevConfig}} = EnzymeCore.set_runtime_activity(mode, runtime_activity(config))

end # EnzymeRules

2 comments on commit 5a5beea

@wsmoses
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register subdir="lib/EnzymeCore"

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/115524

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a EnzymeCore-v0.8.1 -m "<description of version>" 5a5beea54eabc9117a371397847dfaa62cd6c161
git push origin EnzymeCore-v0.8.1

Please sign in to comment.