NVIDIA / NVIDIA/cuopt

[FEA] cuOpt should exit the solve gracefully on SIGINT

Open
#186 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
Cuda
Stars
1k
Forks
233
Avg merge
4d 4h
Merged PRs (30d)
95

Description

We received the following request from a user

Many solvers handle SIGINT (Ctrl-C) gracefully by terminating while still returning the best available solution. Currently, cuOpt ignores SIGINT and continues running, while SIGTERM results in an immediate termination

We should treat SIGINT as another limit (similar to hitting a time or iteration limit) where we return information, partial solution, and status of the solve, even if the solve is not complete.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating cuOpt's signal-handling and solve-termination paths, then compare SIGINT with SIGTERM and existing time or iteration limits. Done means Ctrl-C returns the best available or partial solution and solve status instead of continuing, while SIGTERM still terminates immediately.

Written by the indexing model from the issue text.

Assessment

Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.