Skip to content

Commit

Permalink
Remove inline from forward_diff.jl to workaround startup crash with p…
Browse files Browse the repository at this point in the history
…recompiled image (#127)

* Remove inline from forward_diff.jl to workaround startup crash with precompiled image

Workaround JuliaSIMD/LoopVectorization.jl#364

* Bump version
  • Loading branch information
jaakkor2 committed Dec 28, 2021
1 parent b954b9b commit c7ebc65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Octavian"
uuid = "6fd5a793-0b7e-452c-907f-f8bfe9c57db4"
authors = ["Mason Protter", "Chris Elrod", "Dilum Aluthge", "contributors"]
version = "0.3.10"
version = "0.3.11"

[deps]
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
Expand Down
2 changes: 1 addition & 1 deletion src/forward_diff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
real_rep(a::AbstractArray{DualT}) where {TAG, T, DualT<:ForwardDiff.Dual{TAG, T}} = reinterpret(reshape, T, a)

# multiplication of dual vector/matrix by standard matrix from the left
@inline function _matmul!(_C::AbstractVecOrMat{DualT}, A::AbstractMatrix, _B::AbstractVecOrMat{DualT},
function _matmul!(_C::AbstractVecOrMat{DualT}, A::AbstractMatrix, _B::AbstractVecOrMat{DualT},
α=One(), β=Zero(), nthread::Nothing=nothing, MKN=nothing, contig_axis=nothing) where {DualT <: ForwardDiff.Dual}
B = real_rep(_B)
C = real_rep(_C)
Expand Down

2 comments on commit c7ebc65

@chriselrod
Copy link
Collaborator

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/51342

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 v0.3.11 -m "<description of version>" c7ebc65720e965bf284877829accacc1c34a51b0
git push origin v0.3.11

Please sign in to comment.