Skip to content

CUDSS internal error (invalid argument: inertia correction) #333

@KSepetanc

Description

@KSepetanc

I am using ExaModels documentation AC OPF example model. I am running into error with CUDSS solver. Other GPU solvers work fine.

I am providing the code to reproduce:
examodel_acopf_example.zip

Overall the error report is too long so I am providing the part of it and part of execution log:

iter    objective    inf_pr   inf_du lg(mu)  ||d||  lg(rg) alpha_du alpha_pr  ls
   0  6.9584335e+06 2.84e+01 1.00e+02  -1.0 0.00e+00    -  0.00e+00 0.00e+00   0
EXIT: Internal Error.
ERROR: LoadError: CUDSSError: an invalid value was used as an argument (code 3, CUDSS_STATUS_INVALID_VALUE)
Stacktrace:
  [1] throw_api_error(res::CUDSS.cudssStatus_t)
    @ CUDSS C:\Users\Korisnik\.julia\packages\CUDSS\JUOfJ\src\error.jl:41
  [2] check
    @ C:\Users\Korisnik\.julia\packages\CUDSS\JUOfJ\src\error.jl:52 [inlined]
  [3] cudssDataGet(handle::Ptr{CUDSS.cudssContext}, data::CUDSS.CudssData, param::String, value::Base.RefValue{Tuple{Int32, Int32}}, sizeInBytes::Int64, sizeWritten::Base.RefValue{Int32})
    @ CUDSS C:\Users\Korisnik\.julia\packages\CUDA\02Uw6\lib\utils\call.jl:30
  [4] cudss_get(data::CUDSS.CudssData, parameter::String)
    @ CUDSS C:\Users\Korisnik\.julia\packages\CUDSS\JUOfJ\src\interfaces.jl:172
  [5] cudss_get(solver::CUDSS.CudssSolver{Float64}, parameter::String)
    @ CUDSS C:\Users\Korisnik\.julia\packages\CUDSS\JUOfJ\src\interfaces.jl:156
  [6] inertia(M::MadNLPGPU.CUDSSSolver{Float64})
    @ MadNLPGPU C:\Users\Korisnik\.julia\packages\MadNLPGPU\DvKUv\src\cudss.jl:91
  [7] inertia_correction!(inertia_corrector::MadNLP.InertiaBased, solver::MadNLPSolver{Float64, CuArray{Float64, 1, CUDA.Mem.DeviceBuffer} ...

Configuration:
Windows,
CPU: AMD R9 5950x
GPU GTX 1060 6GB

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions