-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't default to MKL on EPYC #518
Conversation
Co-authored-by: Chris Elrod <[email protected]>
test/static_arrays.jl
Outdated
@@ -17,7 +17,7 @@ for alg in (nothing, LUFactorization(), SVDFactorization(), CholeskyFactorizatio | |||
sol = solve(LinearProblem(A, b), alg) | |||
@inferred solve(LinearProblem(A, b), alg) | |||
@test norm(A * sol .- b) < 1e-10 | |||
if alg <: KrylovJL_GMRES |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if alg <: KrylovJL_GMRES | |
if alg isa KrylovJL_GMRES |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's what I had first 26574e6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a isa T
is like typeof(a) <: T
, but the former is preferred.
If a
isn't a type, a <: T
doesn't make sense and will throw an error.
https://github.com/SciML/LinearSolve.jl/actions/runs/10153821474/job/28077889265?pr=518#step:6:1114
test/static_arrays.jl
Outdated
|
||
if __non_native_static_array_alg(alg) | ||
@test_broken __solve_no_alloc(A, b, alg) | ||
if alg isa Function && alg === KrylovJL_GMRES |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if alg isa Function && alg === KrylovJL_GMRES | |
if alg isa KrylovJL |
I tested in the REPL:
julia> using LinearSolve
julia> alg = KrylovJL_GMRES()
KrylovJL{typeof(Krylov.gmres!), Int64, Tuple{}, Base.Pairs{Symbol, Union{}, Tuple{}, @NamedTuple{}}}(Krylov.gmres!, 0, 0, (), Base.Pairs{Symbol, Union{}, Tuple{}, @NamedTuple{}}())
julia> alg isa KrylovJL
true
Co-authored-by: Chris Elrod <[email protected]>
* Don't default to MKL on EPYC * import correctly * Update Project.toml * Update Project.toml Co-authored-by: Chris Elrod <[email protected]> * Update qa.jl * Update static_arrays.jl * Update test/static_arrays.jl * Update test/static_arrays.jl * Update adjoint.jl * Update test/adjoint.jl * Update static_arrays.jl * Update static_arrays.jl * Update test/static_arrays.jl * Update static_arrays.jl * Update test/static_arrays.jl * Update test/static_arrays.jl Co-authored-by: Chris Elrod <[email protected]> --------- Co-authored-by: Chris Elrod <[email protected]>
No description provided.