Skip to content

Solver diverges when using CUDA #22

@fuglede

Description

@fuglede

I have a large-ish LP which plc can solve just fine when compiled with -DBUILD_CUDA=OFF, but with -DBUILD_CUDA=ON I'm getting output a la

Iteration  498
PrimalStep: 1.161839e-12, SumPrimalStep: 2.100882e+02, DualStep: 3.706379e+13, SumDualStep: 2.100882e+02
Stepsize: 6.562176e+00, Primal weight: 5.648094e+12 Ratio: 1.000000e+00
 -- stepsize iteration 1: 6.715268 2550327659779212181504.000000
 -- PrimalStep DualStep: 0.000000 37063786604937.484375
 -- FirstTerm SecondTerm: 2160791130818487255040.000000 6.715268
 -- nStepSizeIter: 524
 -- RED_EXP GRO_EXP: 0.300000 0.600000
     -- iteraction(x) interaction(y): 180960874762558169415680.000000 -213243374940688198458600885579677696.000000
     -- movement (scaled norm)  : 461509524244794076633763648089789999137947648.000000
     -- movement (scaled norm)  : 461509524244794076633763648089789999137947648.000000

It looks like the step sizes are blowing up(?) -- can I somehow control those? Setting -eLineSearchMethod 0 seems like it would make it easier to control the steps, but that gives a number of errors:

CUBLAS API failed at line 564 of /home/user/repos/cuPDLP-C/cupdlp/cupdlp_linalg.c with error: the function failed to launch on the GPU (13)
CUBLAS API failed at line 578 of /home/user/repos/cuPDLP-C/cupdlp/cupdlp_linalg.c with error: the function failed to launch on the GPU (13)
CUBLAS API failed at line 550 of /home/user/repos/cuPDLP-C/cupdlp/cupdlp_linalg.c with error: the requested functionality is not supported (15)
CUBLAS API failed at line 535 of /home/user/repos/cuPDLP-C/cupdlp/cupdlp_linalg.c with error: the function failed to launch on the GPU (13)
CUBLAS API failed at line 550 of /home/user/repos/cuPDLP-C/cupdlp/cupdlp_linalg.c with error: the requested functionality is not supported (15)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions