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

Switch to DSDP_jll #23

Merged
merged 1 commit into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ repo = "https://github.com/jump-dev/DSDP.jl.git"
version = "0.1.0"

[deps]
BinDeps = "9e28174c-4ba2-5203-b857-d8d62c4213ee"
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
DSDP_jll = "1065e140-e56c-5613-be8b-7480bf7138df"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee"

[compat]
BinDeps = "1"
DSDP_jll = "0.0.1"
MathOptInterface = "1"
julia = "1.6"

Expand Down
5 changes: 0 additions & 5 deletions deps/.gitignore

This file was deleted.

20 changes: 0 additions & 20 deletions deps/apple.patch

This file was deleted.

41 changes: 0 additions & 41 deletions deps/build.jl

This file was deleted.

11 changes: 0 additions & 11 deletions deps/g2c_1.patch

This file was deleted.

11 changes: 0 additions & 11 deletions deps/g2c_2.patch

This file was deleted.

10 changes: 0 additions & 10 deletions deps/malloc.patch

This file was deleted.

10 changes: 0 additions & 10 deletions deps/matlab.patch

This file was deleted.

11 changes: 0 additions & 11 deletions deps/rm.patch

This file was deleted.

28 changes: 0 additions & 28 deletions deps/shared.patch

This file was deleted.

11 changes: 3 additions & 8 deletions src/DSDP.jl
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
module DSDP
using Libdl, LinearAlgebra

if isfile(joinpath(dirname(@__FILE__), "..", "deps", "deps.jl"))
include("../deps/deps.jl")
else
error("DSDP not properly installed. Please run Pkg.build(\"DSDP\")")
end
import DSDP_jll
using LinearAlgebra

macro dsdp_ccall(f, args...)
quote
# QuoteNode prevents the interpretion of the symbol
# and leave it as a symbol
info = ccall(($(QuoteNode(f)), libdsdp), Cint, $(esc.(args)...))
info = ccall(($(QuoteNode(f)), DSDP_jll.libdsdp), Cint, $(esc.(args)...))
if !iszero(info)
error("DSDP call $($(QuoteNode(f))) returned nonzero status $info.")
end
Expand Down
Loading