Skip to content

Commit 9f76820

Browse files
committed
Do not try to set the number of threads on 32-bit systems
1 parent a71016b commit 9f76820

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/IntervalArithmetic.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ include("symbols.jl")
4040
import LinearAlgebra
4141
import OpenBLASConsistentFPCSR_jll # 32-bit systems are not supported
4242

43-
# use the same number of threads as the default BLAS library
44-
ccall((:openblas_set_num_threads64_, OpenBLASConsistentFPCSR_jll.libopenblas),
45-
Cint, (Cint,),
46-
LinearAlgebra.BLAS.get_num_threads())
43+
if Int != Int32
44+
# use the same number of threads as the default BLAS library
45+
ccall((:openblas_set_num_threads64_, OpenBLASConsistentFPCSR_jll.libopenblas),
46+
Cint, (Cint,),
47+
LinearAlgebra.BLAS.get_num_threads())
48+
end
4749

4850
include("matmul.jl")
4951

src/matmul.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ function __mul(A::AbstractMatrix{Interval{T}}, B::AbstractVecOrMat{Interval{T}})
457457
rC = _call_gem_openblas_upward!(cache_3, U, V)
458458
rC .= _add_round.(_sub_round.(rC, μ, RoundUp), 2 .* γ, RoundUp)
459459

460-
return @show mC, rC
460+
return mC, rC
461461
end
462462

463463
function _vec_or_mat_midradius(A::AbstractVecOrMat{Interval{T}}) where {T<:AbstractFloat}

0 commit comments

Comments
 (0)