Skip to content
Draft
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
20 changes: 10 additions & 10 deletions Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

julia_version = "1.12.2"
manifest_format = "2.0"
project_hash = "2ccee5e212b4700701dc3d1848104837eff8853c"
project_hash = "54309def7c908068951b3458be89fae48b84f475"

[[deps.ArgTools]]
uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f"
Expand Down Expand Up @@ -35,9 +35,9 @@ version = "0.5.0"

[[deps.CUDA_Driver_jll]]
deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"]
git-tree-sha1 = "2023be0b10c56d259ea84a94dbfc021aa452f2c6"
git-tree-sha1 = "63b4911c80ade9de10ec4b766e99cb1a628f465f"
uuid = "4ee394cb-3365-5eb0-8335-949819d2adfc"
version = "13.0.2+0"
version = "13.1.0+0"

[[deps.CUDA_Runtime_jll]]
deps = ["Artifacts", "CUDA_Driver_jll", "JLLWrappers", "LazyArtifacts", "Libdl", "TOML"]
Expand All @@ -47,9 +47,9 @@ version = "0.19.2+0"

[[deps.CUDA_SDK_jll]]
deps = ["Artifacts", "JLLWrappers", "Libdl"]
git-tree-sha1 = "8c546633bdb21b7b806276c0677a5656b4f675bc"
git-tree-sha1 = "f2f5388f3141f39a0d2a9145ceaa280fb055ec60"
uuid = "6cbf2f2e-7e60-5632-ac76-dca2274e0be0"
version = "13.0.2+1"
version = "13.1.0+0"

[[deps.Clang]]
deps = ["CEnum", "Clang_jll", "Downloads", "Pkg", "TOML"]
Expand Down Expand Up @@ -334,9 +334,9 @@ version = "1.3.3"

[[deps.Preferences]]
deps = ["TOML"]
git-tree-sha1 = "0f27480397253da18fe2c12a4ba4eb9eb208bf3d"
git-tree-sha1 = "522f093a29b31a93e34eaea17ba055d850edea28"
uuid = "21216c6a-2e73-6563-6e65-726566657250"
version = "1.5.0"
version = "1.5.1"

[[deps.Printf]]
deps = ["Unicode"]
Expand Down Expand Up @@ -460,13 +460,13 @@ version = "1.3.1+2"
deps = ["CUDA_Runtime_jll", "CUDA_SDK_jll", "Clang", "MathOptInterface", "Test", "cuPDLPx_jll"]
path = "."
uuid = "bcd6524d-1420-4b17-a582-359cb8a71a63"
version = "0.1.4"
version = "0.2.2"

[[deps.cuPDLPx_jll]]
deps = ["Artifacts", "CUDA_Runtime_jll", "CompilerSupportLibraries_jll", "JLLWrappers", "Libdl", "TOML", "Zlib_jll"]
git-tree-sha1 = "ba09f738d421a949c9058167743c33275cf58400"
git-tree-sha1 = "84f425232e24b1d8a961c5fc3b3d30e2d9b834ad"
uuid = "bca5daad-f4d3-5101-ae12-8b63679c982c"
version = "0.1.4+0"
version = "0.2.2+0"

[[deps.libLLVM_jll]]
deps = ["Artifacts", "Libdl"]
Expand Down
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "cuPDLPx"
uuid = "bcd6524d-1420-4b17-a582-359cb8a71a63"
version = "0.1.4"
version = "0.2.2"

[deps]
CUDA_Runtime_jll = "76a88914-d11a-5bdc-97e0-2f5a05c973a2"
Expand All @@ -16,4 +16,4 @@ CUDA_SDK_jll = "13.0.2"
Clang = "0.19.0"
MathOptInterface = "1.46.0"
Test = "1.11.0"
cuPDLPx_jll = "0.1.4"
cuPDLPx_jll = "0.2.2"
23 changes: 19 additions & 4 deletions src/LibcuPDLPx.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module LibcuPDLPx

using cuPDLPx_jll
const libcupdlpx = cuPDLPx_jll.libcupdlpx
export cuPDLPx_jll

@enum termination_reason_t::UInt32 begin
Expand Down Expand Up @@ -51,25 +52,39 @@ end

struct pdhg_parameters_t
l_inf_ruiz_iterations::Cint
has_pock_chambolle_alpha::Bool
has_pock_chambolle_alpha::Cint
pock_chambolle_alpha::Cdouble
bound_objective_rescaling::Bool
verbose::Bool
bound_objective_rescaling::Cint
verbose::Cint
termination_evaluation_frequency::Cint
sv_max_iter::Cint
sv_tol::Cdouble
termination_criteria::termination_criteria_t
restart_params::restart_parameters_t
reflection_coefficient::Cdouble
feasibility_polishing::Bool
feasibility_polishing::Cint
presolve::Cint
end

struct cupdlpx_result_t
num_variables::Cint
num_constraints::Cint
num_nonzeros::Cint

num_reduced_variables::Cint
num_reduced_constraints::Cint
num_reduced_nonzeros::Cint

primal_solution::Ptr{Cdouble}
dual_solution::Ptr{Cdouble}
reduced_cost::Ptr{Cdouble}

total_count::Cint
rescaling_time_sec::Cdouble
cumulative_time_sec::Cdouble
presolve_time::Cdouble
presolve_status::Cint

absolute_primal_residual::Cdouble
relative_primal_residual::Cdouble
absolute_dual_residual::Cdouble
Expand Down
Loading