Skip to content

Commit e8f3c62

Browse files
committed
Add warning about binary issue on mac
1 parent 9c6e3c9 commit e8f3c62

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ Until Julia 0.6 the package was registered as `VML.jl`.
1313

1414
Similar packages are [Yeppp.jl](https://github.com/JuliaMath/Yeppp.jl), which wraps the open source Yeppp library, and [AppleAccelerate.jl](https://github.com/JuliaMath/AppleAccelerate.jl), which provides access to macOS's Accelerate framework.
1515

16+
### Warning for macOS
17+
There is currently [the following](https://github.com/JuliaPackaging/BinaryBuilder.jl/issues/700) issue between the artifacts used by `SpecialFunctions.jl` and `MKL_jll`. Unless `IntelVectorMath` is loaded first, there might be wrong results coming from a small number of function for particular input array lengths.
18+
1619
## Basic install
1720

1821
To install IntelVectorMath.jl run

src/IntelVectorMath.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ const IVM = IntelVectorMath
88
# import Base: .^, ./
99
include("setup.jl")
1010

11+
function __init__()
12+
if Sys.isapple() && :SpecialFunctions in names(Main; imported = true)
13+
@warn "It appears SpecialFunctions was loaded prior to this package, which currently on mac may lead to wrong results. For further details see github.com/JuliaMath/IntelVectorMath.jl"
14+
end
15+
end
16+
1117
for t in (Float32, Float64, ComplexF32, ComplexF64)
1218
# Unary, real or complex
1319
def_unary_op(t, t, :acos, :acos!, :Acos)

0 commit comments

Comments
 (0)