Repository navigation
fix: avoid uncapturable RMM copies inside routing CUDA graph captures #1753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
628ab29
b15911e
5a93131
402005c
711a4c9
087c3b0
f77a0fa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,9 @@ | |
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| import cudf | ||
| import cupy | ||
| import numpy as np | ||
| import pytest | ||
|
|
||
| from cuopt import routing | ||
|
|
||
|
|
@@ -16,6 +18,12 @@ def create_tsp_cost_matrix(n_locations): | |
| return cudf.DataFrame(cost_matrix) | ||
|
|
||
|
|
||
| @pytest.mark.skipif( | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this a test issue or code path issue?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Code path, but to unblock CI, I have disabled this test.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay, approved for this test updated , thanks! |
||
| 13030 <= cupy.cuda.get_local_runtime_version() < 13040, | ||
| reason="block_copy destination overflow on CUDA 13.3, see " | ||
| "https://github.com/NVIDIA/cuopt/issues/1756. The device-side assert " | ||
| "aborts the process, so xfail cannot catch it.", | ||
| ) | ||
| def test_batch_solve_varying_sizes(): | ||
| """Test batch solving TSPs of varying sizes.""" | ||
| tsp_sizes = [ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: NVIDIA/cuopt
Length of output: 49700
🏁 Script executed:
Repository: NVIDIA/cuopt
Length of output: 50368
🏁 Script executed:
Repository: NVIDIA/cuopt
Length of output: 25406
🏁 Script executed:
Repository: NVIDIA/cuopt
Length of output: 1425
🏁 Script executed:
Repository: NVIDIA/cuopt
Length of output: 46947
🏁 Script executed:
Repository: NVIDIA/cuopt
Length of output: 469
🏁 Script executed:
Repository: NVIDIA/cuopt
Length of output: 307
Add a registered CUDA graph regression test.
find_vrp_movescaptures the stream, callsvrp_move_candidates_t::reset, launches the kernel, and launches the graph. Test this sequence and validate its result.local_search_cand_test.cuis not registered incpp/tests/routing/CMakeLists.txt.🤖 Prompt for AI Agents
Source: Coding guidelines