Skip to content
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

Merged
merged 16 commits into from
Jul 30, 2024
Merged

Don't default to MKL on EPYC #518

merged 16 commits into from
Jul 30, 2024

Conversation

ChrisRackauckas
Copy link
Member

No description provided.

Project.toml Outdated Show resolved Hide resolved
test/adjoint.jl Outdated Show resolved Hide resolved
@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if alg <: KrylovJL_GMRES
if alg isa KrylovJL_GMRES

Copy link
Member Author

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

Copy link
Contributor

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


if __non_native_static_array_alg(alg)
@test_broken __solve_no_alloc(A, b, alg)
if alg isa Function && alg === KrylovJL_GMRES
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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

test/static_arrays.jl Outdated Show resolved Hide resolved
@ChrisRackauckas ChrisRackauckas merged commit e63fade into main Jul 30, 2024
14 of 16 checks passed
@ChrisRackauckas ChrisRackauckas deleted the mkl branch July 30, 2024 05:38
oscardssmith pushed a commit to oscardssmith/LinearSolve.jl that referenced this pull request Aug 5, 2024
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants