Skip to content

Commit

Permalink
Deprecate LV for Julia >= 1.11-DEV (JuliaSIMD#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 <elrodc@gmail.com>"]
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

0 comments on commit a4a160f

Please sign in to comment.