File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
cpp/src/linear_programming/utilities Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -229,13 +229,8 @@ std::unique_ptr<solver_ret_t> call_solve(
229229 bool is_batch_mode)
230230{
231231 raft::common::nvtx::range fun_scope (" Call Solve" );
232-
233- // FIX: Use default handle constructor like CLI does, instead of explicit stream creation
234- // Original code created a non-blocking stream which causes synchronization issues with PDLP
235- // This is a workaround to fix the synchronization issues, please fix this in the future and
236- // remove this workaround. cudaStream_t stream; RAFT_CUDA_TRY(cudaStreamCreateWithFlags(&stream,
237- // flags)); // flags=cudaStreamNonBlocking const raft::handle_t handle_{stream};
238- const raft::handle_t handle_{};
232+ rmm::cuda_stream stream (rmm::cuda_stream::flags::non_blocking);
233+ const raft::handle_t handle_{stream};
239234
240235 auto op_problem = data_model_to_optimization_problem (data_model, solver_settings, &handle_);
241236 solver_ret_t response;
You can’t perform that action at this time.
0 commit comments