Skip to content

Commit

Permalink
Update SCS.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Nov 14, 2023
1 parent 604e8ee commit 24824ad
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/SCS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
module SCS

import MathOptInterface as MOI
import Requires # Remove when Julia 1.9 is the LTS
import SCS_jll
import SparseArrays

Expand All @@ -24,9 +25,9 @@ struct GpuIndirectSolver <: LinearSolver end
# Code is contained in /ext/SCSSCS_MKL_jllExt
struct MKLDirectSolver <: LinearSolver end

@static if !isdefined(Base, :get_extension)
import Requires
function __init__()
function __init__()
# Remove when Julia 1.9 is the LTS
@static if !isdefined(Base, :get_extension)

Check warning on line 30 in src/SCS.jl

View check run for this annotation

Codecov / codecov/patch

src/SCS.jl#L30

Added line #L30 was not covered by tests
Requires.@require(
SCS_GPU_jll = "af6e375f-46ec-5fa0-b791-491b0dfa44a4",
include("../ext/SCSSCS_GPU_jllExt.jl"),
Expand All @@ -35,8 +36,8 @@ struct MKLDirectSolver <: LinearSolver end
SCS_MKL_jll = "3f2553a9-4106-52be-b7dd-865123654657",
include("../ext/SCSSCS_MKL_jllExt.jl"),
)
return
end
return
end

export scs_solve
Expand Down

0 comments on commit 24824ad

Please sign in to comment.