Skip to content

Commit bff475c

Browse files
committed
Reset to non blocking
1 parent 540d271 commit bff475c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

cpp/src/linear_programming/utilities/cython_solve.cu

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)