Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/appleaccelerate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ function aa_getrf!(A::AbstractMatrix{<:ComplexF64};
ipiv = similar(A, Cint, min(size(A, 1), size(A, 2))),
info = Ref{Cint}(),
check = false)
__appleaccelerate_isavailable() ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
__appleaccelerate_isavailable() ||
__appleaccelerate_isavailable() ||

error("Error, AppleAccelerate binary is missing but solve is being called. Report this issue")
require_one_based_indexing(A)
check && chkfinite(A)
chkstride1(A)
Expand All @@ -54,6 +56,8 @@ function aa_getrf!(A::AbstractMatrix{<:ComplexF32};
ipiv = similar(A, Cint, min(size(A, 1), size(A, 2))),
info = Ref{Cint}(),
check = false)
__appleaccelerate_isavailable() ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
__appleaccelerate_isavailable() ||
__appleaccelerate_isavailable() ||

error("Error, AppleAccelerate binary is missing but solve is being called. Report this issue")
require_one_based_indexing(A)
check && chkfinite(A)
chkstride1(A)
Expand All @@ -74,6 +78,8 @@ function aa_getrf!(A::AbstractMatrix{<:Float64};
ipiv = similar(A, Cint, min(size(A, 1), size(A, 2))),
info = Ref{Cint}(),
check = false)
__appleaccelerate_isavailable() ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
__appleaccelerate_isavailable() ||
__appleaccelerate_isavailable() ||

error("Error, AppleAccelerate binary is missing but solve is being called. Report this issue")
require_one_based_indexing(A)
check && chkfinite(A)
chkstride1(A)
Expand All @@ -94,6 +100,8 @@ function aa_getrf!(A::AbstractMatrix{<:Float32};
ipiv = similar(A, Cint, min(size(A, 1), size(A, 2))),
info = Ref{Cint}(),
check = false)
__appleaccelerate_isavailable() ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
__appleaccelerate_isavailable() ||
__appleaccelerate_isavailable() ||

error("Error, AppleAccelerate binary is missing but solve is being called. Report this issue")
require_one_based_indexing(A)
check && chkfinite(A)
chkstride1(A)
Expand All @@ -116,6 +124,8 @@ function aa_getrs!(trans::AbstractChar,
ipiv::AbstractVector{Cint},
B::AbstractVecOrMat{<:ComplexF64};
info = Ref{Cint}())
__appleaccelerate_isavailable() ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
__appleaccelerate_isavailable() ||
__appleaccelerate_isavailable() ||

error("Error, AppleAccelerate binary is missing but solve is being called. Report this issue")
require_one_based_indexing(A, ipiv, B)
LinearAlgebra.LAPACK.chktrans(trans)
chkstride1(A, B, ipiv)
Expand All @@ -140,6 +150,8 @@ function aa_getrs!(trans::AbstractChar,
ipiv::AbstractVector{Cint},
B::AbstractVecOrMat{<:ComplexF32};
info = Ref{Cint}())
__appleaccelerate_isavailable() ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
__appleaccelerate_isavailable() ||
__appleaccelerate_isavailable() ||

error("Error, AppleAccelerate binary is missing but solve is being called. Report this issue")
require_one_based_indexing(A, ipiv, B)
LinearAlgebra.LAPACK.chktrans(trans)
chkstride1(A, B, ipiv)
Expand All @@ -165,6 +177,8 @@ function aa_getrs!(trans::AbstractChar,
ipiv::AbstractVector{Cint},
B::AbstractVecOrMat{<:Float64};
info = Ref{Cint}())
__appleaccelerate_isavailable() ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
__appleaccelerate_isavailable() ||
__appleaccelerate_isavailable() ||

error("Error, AppleAccelerate binary is missing but solve is being called. Report this issue")
require_one_based_indexing(A, ipiv, B)
LinearAlgebra.LAPACK.chktrans(trans)
chkstride1(A, B, ipiv)
Expand All @@ -190,6 +204,8 @@ function aa_getrs!(trans::AbstractChar,
ipiv::AbstractVector{Cint},
B::AbstractVecOrMat{<:Float32};
info = Ref{Cint}())
__appleaccelerate_isavailable() ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
__appleaccelerate_isavailable() ||
__appleaccelerate_isavailable() ||

error("Error, AppleAccelerate binary is missing but solve is being called. Report this issue")
require_one_based_indexing(A, ipiv, B)
LinearAlgebra.LAPACK.chktrans(trans)
chkstride1(A, B, ipiv)
Expand Down Expand Up @@ -236,6 +252,8 @@ end

function SciMLBase.solve!(cache::LinearCache, alg::AppleAccelerateLUFactorization;
kwargs...)
__appleaccelerate_isavailable() ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
__appleaccelerate_isavailable() ||
__appleaccelerate_isavailable() ||

error("Error, AppleAccelerate binary is missing but solve is being called. Report this issue")
A = cache.A
A = convert(AbstractMatrix, A)
if cache.isfresh
Expand Down
Loading