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 e070ab5 commit 604e8ee
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/SCS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,9 @@ struct GpuIndirectSolver <: LinearSolver end
# Code is contained in /ext/SCSSCS_MKL_jllExt
struct MKLDirectSolver <: LinearSolver end

if !isdefined(Base, :get_extension)
@static if !isdefined(Base, :get_extension)
import Requires
end

function __init__()
@static if !isdefined(Base, :get_extension)
function __init__()
Requires.@require(

Check warning on line 30 in src/SCS.jl

View check run for this annotation

Codecov / codecov/patch

src/SCS.jl#L29-L30

Added lines #L29 - L30 were not covered by tests
SCS_GPU_jll = "af6e375f-46ec-5fa0-b791-491b0dfa44a4",
include("../ext/SCSSCS_GPU_jllExt.jl"),
Expand All @@ -38,8 +35,8 @@ function __init__()
SCS_MKL_jll = "3f2553a9-4106-52be-b7dd-865123654657",
include("../ext/SCSSCS_MKL_jllExt.jl"),
)
return

Check warning on line 38 in src/SCS.jl

View check run for this annotation

Codecov / codecov/patch

src/SCS.jl#L38

Added line #L38 was not covered by tests
end
return
end

export scs_solve
Expand Down

0 comments on commit 604e8ee

Please sign in to comment.