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

WIP: Wrap BLIS #431

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

WIP: Wrap BLIS #431

wants to merge 2 commits into from

Commits on Nov 12, 2023

  1. WIP: Wrap BLIS

    Test case:
    
    ```julia
    using LinearSolve, blis_jll
    
    A = rand(4, 4)
    b = rand(4)
    prob = LinearProblem(A, b)
    sol = solve(prob,LinearSolve.BLISLUFactorization())
    sol.u
    ```
    
    throws:
    
    ```julia
    julia> sol = solve(prob,LinearSolve.BLISLUFactorization())
    ERROR: TypeError: in ccall: first argument not a pointer or valid constant expression, expected Ptr, got a value of type Tuple{Symbol, Ptr{Nothing}}
    Stacktrace:
     [1] getrf!(A::Matrix{Float64}; ipiv::Vector{Int64}, info::Base.RefValue{Int64}, check::Bool)
       @ LinearSolveBLISExt ~/.julia/dev/LinearSolve/ext/LinearSolveBLISExt.jl:67
     [2] getrf!
       @ LinearSolveBLISExt ~/.julia/dev/LinearSolve/ext/LinearSolveBLISExt.jl:55 [inlined]
     [3] #solve!#9
       @ LinearSolveBLISExt ~/.julia/dev/LinearSolve/ext/LinearSolveBLISExt.jl:222 [inlined]
     [4] solve!
       @ LinearSolveBLISExt ~/.julia/dev/LinearSolve/ext/LinearSolveBLISExt.jl:216 [inlined]
     [5] #solve!#6
       @ LinearSolve ~/.julia/dev/LinearSolve/src/common.jl:209 [inlined]
     [6] solve!
       @ LinearSolve ~/.julia/dev/LinearSolve/src/common.jl:208 [inlined]
     [7] #solve#5
       @ LinearSolve ~/.julia/dev/LinearSolve/src/common.jl:205 [inlined]
     [8] solve(::LinearProblem{…}, ::LinearSolve.BLISLUFactorization)
       @ LinearSolve ~/.julia/dev/LinearSolve/src/common.jl:202
     [9] top-level scope
       @ REPL[8]:1
    Some type information was truncated. Use `show(err)` to see complete types.
    ```
    ChrisRackauckas committed Nov 12, 2023
    Configuration menu
    Copy the full SHA
    2fea1c2 View commit details
    Browse the repository at this point in the history
  2. fix path

    ChrisRackauckas committed Nov 12, 2023
    Configuration menu
    Copy the full SHA
    afcc28e View commit details
    Browse the repository at this point in the history