Skip to content

Commit

Permalink
Deprecate LV for Julia >= 1.11-DEV (#519)
Browse files Browse the repository at this point in the history
* Deprecate LV for Julia >= 1.11-DEV

* fix for tests to be able to run

* README comment and bump version.

* esc
  • Loading branch information
chriselrod committed Jan 3, 2024
1 parent d2f749d commit a4a160f
Show file tree
Hide file tree
Showing 7 changed files with 302 additions and 245 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "LoopVectorization"
uuid = "bdcacae8-1622-11e9-2a5c-532679323890"
authors = ["Chris Elrod <[email protected]>"]
version = "0.12.166"
version = "0.12.167"

[deps]
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

[![LoopVectorization Downloads](https://shields.io/endpoint?url=https://pkgs.genieframework.com/api/v1/badge/LoopVectorization)](https://pkgs.genieframework.com?packages=LoopVectorization)

# NOTE: Deprecated for Julia v1.11 and above!

LoopVectorization only works for Julia 1.3 through 1.10. For 1.11 and newer, it simply uses `@inbounds @fastmath` instead, so it should still get roughly the same answer, but both runtime and compile time performance may change dramatically.

## Installation

```julia
Expand Down
2 changes: 2 additions & 0 deletions ext/ForwardDiffExt.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module ForwardDiffExt
if VERSION < v"1.11-DEV"
import ForwardDiff, ChainRulesCore
using LoopVectorization, VectorizationBase, SLEEFPirates, ForwardDiff

Expand Down Expand Up @@ -377,3 +378,4 @@ for f in (:vmapt, :vmapnt, :vmapntt)
end
end
end
end
2 changes: 2 additions & 0 deletions ext/SpecialFunctionsExt.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module SpecialFunctionsExt
if VERSION < v"1.11-DEV"
using SpecialFunctions
using LoopVectorization: VectorizationBase
using LoopVectorization: AbstractSIMD
@inline SpecialFunctions.erf(x::AbstractSIMD) = VectorizationBase.verf(float(x))
end
end
Loading

2 comments on commit a4a160f

@chriselrod
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

Release notes:
Dropping support for VERSION >= v"1.11-DEV". These versions will simply run @inbounds @fastmath instead.

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

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

Please sign in to comment.