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 780c7ca commit e070ab5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/SCS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ struct MKLDirectSolver <: LinearSolver end

if !isdefined(Base, :get_extension)
import Requires
function __init__()
end

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

Check warning on line 32 in src/SCS.jl

View check run for this annotation

Codecov / codecov/patch

src/SCS.jl#L32

Added line #L32 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 +38,8 @@ if !isdefined(Base, :get_extension)
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 e070ab5

Please sign in to comment.