From e0d5160ca03b20fa5ea21b7b86ad994868e7e448 Mon Sep 17 00:00:00 2001 From: Seunghwa Kang Date: Tue, 7 Jan 2025 15:02:54 -0800 Subject: [PATCH 1/3] fix a build warning --- cpp/src/sampling/neighbor_sampling_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/sampling/neighbor_sampling_impl.hpp b/cpp/src/sampling/neighbor_sampling_impl.hpp index ed77b33043..b3204d54a5 100644 --- a/cpp/src/sampling/neighbor_sampling_impl.hpp +++ b/cpp/src/sampling/neighbor_sampling_impl.hpp @@ -184,7 +184,7 @@ neighbor_sample_impl(raft::handle_t const& handle, std::vector level_sizes{}; - for (auto hop = 0; hop < num_hops; hop++) { + for (size_t hop = 0; hop < num_hops; ++hop) { rmm::device_uvector level_result_src(0, handle.get_stream()); rmm::device_uvector level_result_dst(0, handle.get_stream()); From 2ac06edb6d55d128e1e1fdee0f0921f1d9da80f4 Mon Sep 17 00:00:00 2001 From: Seunghwa Kang Date: Tue, 7 Jan 2025 15:03:16 -0800 Subject: [PATCH 2/3] fix a potential build error --- cpp/src/sampling/sampling_post_processing_impl.cuh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cpp/src/sampling/sampling_post_processing_impl.cuh b/cpp/src/sampling/sampling_post_processing_impl.cuh index 4624e6d4a5..4fe30445f5 100644 --- a/cpp/src/sampling/sampling_post_processing_impl.cuh +++ b/cpp/src/sampling/sampling_post_processing_impl.cuh @@ -1391,12 +1391,10 @@ compute_vertex_renumber_map( [offsets = *vertex_type_offsets] __device__(auto lhs, auto rhs) { auto lhs_v_type = thrust::distance( offsets.begin() + 1, - thrust::upper_bound( - thrust::seq, offsets.begin() + 1, offsets.end(), thrust::get<0>(lhs))); + thrust::upper_bound(thrust::seq, offsets.begin() + 1, offsets.end(), lhs)); auto rhs_v_type = thrust::distance( offsets.begin() + 1, - thrust::upper_bound( - thrust::seq, offsets.begin() + 1, offsets.end(), thrust::get<0>(rhs))); + thrust::upper_bound(thrust::seq, offsets.begin() + 1, offsets.end(), rhs)); return lhs_v_type < rhs_v_type; }); } From 8b64baee8e5aef5defc5e3552ebbc9be732c90df Mon Sep 17 00:00:00 2001 From: Seunghwa Kang Date: Mon, 13 Jan 2025 09:41:27 -0800 Subject: [PATCH 3/3] copyright year --- cpp/src/sampling/neighbor_sampling_impl.hpp | 2 +- cpp/src/sampling/sampling_post_processing_impl.cuh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/src/sampling/neighbor_sampling_impl.hpp b/cpp/src/sampling/neighbor_sampling_impl.hpp index b3204d54a5..4363005500 100644 --- a/cpp/src/sampling/neighbor_sampling_impl.hpp +++ b/cpp/src/sampling/neighbor_sampling_impl.hpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2024, NVIDIA CORPORATION. + * Copyright (c) 2022-2025, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/cpp/src/sampling/sampling_post_processing_impl.cuh b/cpp/src/sampling/sampling_post_processing_impl.cuh index 4fe30445f5..151350dad6 100644 --- a/cpp/src/sampling/sampling_post_processing_impl.cuh +++ b/cpp/src/sampling/sampling_post_processing_impl.cuh @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023-2024, NVIDIA CORPORATION. + * Copyright (c) 2023-2025, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.