From c18ca0804a55f8b059a914c8eea2c61bcda272b0 Mon Sep 17 00:00:00 2001 From: Seunghwa Kang Date: Tue, 13 Jan 2026 15:29:12 -0800 Subject: [PATCH 1/3] bug fix --- cpp/src/traversal/od_shortest_distances_impl.cuh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpp/src/traversal/od_shortest_distances_impl.cuh b/cpp/src/traversal/od_shortest_distances_impl.cuh index 549b6887bc..a542db0bd2 100644 --- a/cpp/src/traversal/od_shortest_distances_impl.cuh +++ b/cpp/src/traversal/od_shortest_distances_impl.cuh @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: Copyright (c) 2024-2025, NVIDIA CORPORATION. + * SPDX-FileCopyrightText: Copyright (c) 2024-2026, NVIDIA CORPORATION. * SPDX-License-Identifier: Apache-2.0 */ #pragma once @@ -913,6 +913,7 @@ rmm::device_uvector od_shortest_distances( handle.get_stream()); rmm::device_uvector tmp_buffer = std::move(far_buffers.back()); + far_buffers.back() = rmm::device_uvector(0, handle.get_stream()); std::vector h_buffer_ptrs(h_split_thresholds.size() + 1); auto old_size = new_near_q_keys.size(); for (size_t j = 0; j < h_buffer_ptrs.size(); ++j) { @@ -995,6 +996,7 @@ rmm::device_uvector od_shortest_distances( handle.get_stream()); } else { far_buffers[i - num_near_q_insert_buffers] = std::move(far_buffers[i]); + far_buffers[i] = rmm::device_uvector(0, handle.get_stream()); } } From b7c0f7e4583947de6a6c618f33cde917c019d9eb Mon Sep 17 00:00:00 2001 From: Seunghwa Kang <45857425+seunghwak@users.noreply.github.com> Date: Tue, 13 Jan 2026 16:01:16 -0800 Subject: [PATCH 2/3] Update cpp/src/traversal/od_shortest_distances_impl.cuh Co-authored-by: Bradley Dice --- cpp/src/traversal/od_shortest_distances_impl.cuh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/src/traversal/od_shortest_distances_impl.cuh b/cpp/src/traversal/od_shortest_distances_impl.cuh index a542db0bd2..306d000ec0 100644 --- a/cpp/src/traversal/od_shortest_distances_impl.cuh +++ b/cpp/src/traversal/od_shortest_distances_impl.cuh @@ -995,8 +995,8 @@ rmm::device_uvector od_shortest_distances( new_near_q_keys.resize(cuda::std::distance(new_near_q_keys.begin(), last), handle.get_stream()); } else { - far_buffers[i - num_near_q_insert_buffers] = std::move(far_buffers[i]); - far_buffers[i] = rmm::device_uvector(0, handle.get_stream()); + std::swap(far_buffers[i - num_near_q_insert_buffers], far_buffers[i]); + far_buffers[i].resize(0, handle.get_stream()); } } From 66e233a8851ee8adfb78c59576d9eb01ceb8b167 Mon Sep 17 00:00:00 2001 From: Seunghwa Kang <45857425+seunghwak@users.noreply.github.com> Date: Tue, 13 Jan 2026 16:01:24 -0800 Subject: [PATCH 3/3] Update cpp/src/traversal/od_shortest_distances_impl.cuh Co-authored-by: Bradley Dice --- cpp/src/traversal/od_shortest_distances_impl.cuh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/src/traversal/od_shortest_distances_impl.cuh b/cpp/src/traversal/od_shortest_distances_impl.cuh index 306d000ec0..90ed6ab9dd 100644 --- a/cpp/src/traversal/od_shortest_distances_impl.cuh +++ b/cpp/src/traversal/od_shortest_distances_impl.cuh @@ -912,8 +912,8 @@ rmm::device_uvector od_shortest_distances( h_split_thresholds.size(), handle.get_stream()); - rmm::device_uvector tmp_buffer = std::move(far_buffers.back()); - far_buffers.back() = rmm::device_uvector(0, handle.get_stream()); + auto tmp_buffer = rmm::device_uvector(0, handle.get_stream()); + std::swap(tmp_buffer, far_buffers.back()); std::vector h_buffer_ptrs(h_split_thresholds.size() + 1); auto old_size = new_near_q_keys.size(); for (size_t j = 0; j < h_buffer_ptrs.size(); ++j) {