@@ -645,6 +645,7 @@ if (DEBUG_MODE){
645645 }
646646
647647 CUDA_CHECK (cudaGraphLaunch (graphExec, gpu_stream_));
648+ CUDA_CHECK (cudaStreamSynchronize (gpu_stream_));
648649#else
649650 for (int i = 2 ; i <= PDHG_CHECK_INTERVAL - 1 ; i++) {
650651 performHalpernPdhgStep (false , i);
@@ -1989,12 +1990,19 @@ void AdaptiveLinesearchParams::initialise() {
19891990// =============================================================================
19901991
19911992void PDLPSolver::initializeStepSizes () {
1993+ <<<<<<< HEAD
19921994 // Align the initial geometry with cuPDLPx: start from a neutral primal
19931995 // weight and let restart/PID updates adapt it afterwards.
1996+ =======
1997+ >>>>>>> 1dcb9ab540a44c45949a17184be471bf6989d087
19941998 primal_weight_ = 1.0 ;
19951999 best_primal_weight_ = primal_weight_;
19962000 stepsize_.beta = primal_weight_ * primal_weight_;
19972001 params_.omega = primal_weight_;
2002+ <<<<<<< HEAD
2003+ =======
2004+
2005+ >>>>>>> 1dcb9ab540a44c45949a17184be471bf6989d087
19982006
19992007 if (params_.step_size_strategy != StepSizeStrategy::FIXED &&
20002008 params_.step_size_strategy != StepSizeStrategy::PID) {
@@ -2099,6 +2107,13 @@ void PDLPSolver::updatePrimalWeightAtRestart(const SolverResults& results) {
20992107 stepsize_.dual_step = eta * primal_weight_;
21002108 params_.omega = primal_weight_;
21012109 restart_scheme_.updateBeta (stepsize_.beta );
2110+
2111+ // === POST-RESTART DEBUG OUTPUT ===
2112+ printf (" [restart][post] iter=%d primal_weight=%.6e step_size=%.6e "
2113+ " primal_step=%.6e dual_step=%.6e\n " ,
2114+ final_iter_count_,
2115+ primal_weight_, 1.0 ,
2116+ stepsize_.primal_step , stepsize_.dual_step );
21022117}
21032118
21042119std::vector<double > PDLPSolver::updateX (const std::vector<double >& x,
0 commit comments