Skip to content

Commit

Permalink
Update support for timing internals (#608)
Browse files Browse the repository at this point in the history
* update support for timing internals

* bump JuliaInterpreter compat

* Patch bump
  • Loading branch information
IanButterworth authored Apr 22, 2022
1 parent f13e0a4 commit c294a9a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "ChainRules"
uuid = "082447d4-558c-5d27-93f4-14fc19e9eca2"
version = "1.28.1"
version = "1.28.2"

[deps]
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
Expand All @@ -18,7 +18,7 @@ ChainRulesTestUtils = "1.5"
Compat = "3.42.0"
FiniteDifferences = "0.12.20"
IrrationalConstants = "0.1.1"
JuliaInterpreter = "0.8" # latest is "0.9.1"
JuliaInterpreter = "0.8,0.9"
RealDot = "0.1"
StaticArrays = "1.2"
julia = "1.6"
Expand Down
8 changes: 6 additions & 2 deletions src/rulesets/Base/nondiff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,12 @@ end
@non_differentiable Base.time_ns()
@non_differentiable Base.typename(::Any)
@non_differentiable Base.depwarn(::Any...)
@non_differentiable Base.cumulative_compile_time_ns_before()
@non_differentiable Base.cumulative_compile_time_ns_after()
if isdefined(Base, :cumulative_compile_time_ns_before)
@non_differentiable Base.cumulative_compile_time_ns_before()
@non_differentiable Base.cumulative_compile_time_ns_after()
elseif isdefined(Base, :cumulative_compile_time_ns)
@non_differentiable Base.cumulative_compile_time_ns()
end
@non_differentiable Base.time_print(::Any...)

@non_differentiable Broadcast.combine_styles(::Any...)
Expand Down

2 comments on commit c294a9a

@mcabbott
Copy link
Member

Choose a reason for hiding this comment

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

@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/58930

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 v1.28.2 -m "<description of version>" c294a9ae41a2f197376db8ae232c03285dc400b9
git push origin v1.28.2

Please sign in to comment.