Skip to content

Commit

Permalink
gpu fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jgillis committed Jul 15, 2024
1 parent 8a5b886 commit 176029b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/MadNLP_C.jl
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,10 @@ Base.@ccallable function madnlp_c_solve(s::Ptr{MadnlpCSolver})::Cint
Guvar = CuArray{Float64}(undef, nvar)
Glcon = CuArray{Float64}(undef, ncon)
Gucon = CuArray{Float64}(undef, ncon)
Gnzj_i = CuArray{Int64}(undef, nnzj)
Gnzj_j = CuArray{Int64}(undef, nnzj)
Gnzh_i = CuArray{Int64}(undef, nnzh)
Gnzh_j = CuArray{Int64}(undef, nnzh)
Gnzj_i = CuArray{Int64}(undef, nlp_interface.nnzj)
Gnzj_j = CuArray{Int64}(undef, nlp_interface.nnzj)
Gnzh_i = CuArray{Int64}(undef, nlp_interface.nnzh)
Gnzh_j = CuArray{Int64}(undef, nlp_interface.nnzh)

copyto!(Gx0, x0)
copyto!(Gy0, y0)
Expand Down

0 comments on commit 176029b

Please sign in to comment.