Skip to content

Commit

Permalink
Merge branch 'branch-25.02' into remove_thrust_binary_function
Browse files Browse the repository at this point in the history
  • Loading branch information
ChuckHastings authored Jan 23, 2025
2 parents 53ef2b2 + 285c972 commit 1a7dad4
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 24 deletions.
12 changes: 6 additions & 6 deletions ci/build_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ EXCLUDE_ARGS=(
# 'libraft' wheels are responsible for carrying a runtime dependency on
# these based on RAFT's needs.
EXCLUDE_ARGS+=(
--exclude "libcublas.so.12"
--exclude "libcublasLt.so.12"
--exclude "libcurand.so.10"
--exclude "libcusolver.so.11"
--exclude "libcusparse.so.12"
--exclude "libnvJitLink.so.12"
--exclude "libcublas.so.*"
--exclude "libcublasLt.so.*"
--exclude "libcurand.so.*"
--exclude "libcusolver.so.*"
--exclude "libcusparse.so.*"
--exclude "libnvJitLink.so.*"
)

if [[ "${package_dir}" != "python/libcugraph" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion conda/environments/all_cuda-118_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dependencies:
- networkx>=2.5.1
- ninja
- notebook>=0.5.0
- numba>=0.57
- numba>=0.59.1,<0.61.0a0
- numpy>=1.23,<3.0a0
- numpydoc
- nvcc_linux-64=11.8
Expand Down
2 changes: 1 addition & 1 deletion conda/environments/all_cuda-125_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ dependencies:
- networkx>=2.5.1
- ninja
- notebook>=0.5.0
- numba>=0.57
- numba>=0.59.1,<0.61.0a0
- numpy>=1.23,<3.0a0
- numpydoc
- ogb
Expand Down
4 changes: 2 additions & 2 deletions conda/recipes/cugraph-service/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2018-2024, NVIDIA CORPORATION.
# Copyright (c) 2018-2025, NVIDIA CORPORATION.

{% set version = environ['RAPIDS_PACKAGE_VERSION'].lstrip('v') + environ.get('VERSION_SUFFIX', '') %}
{% set minor_version = version.split('.')[0] + '.' + version.split('.')[1] %}
Expand Down Expand Up @@ -62,7 +62,7 @@ outputs:
- cupy >=12.0.0
- dask-cuda ={{ minor_version }}
- dask-cudf ={{ minor_version }}
- numba >=0.57
- numba >=0.59.1,<0.61.0a0
- numpy >=1.23,<3.0a0
- python
- rapids-dask-dependency ={{ minor_version }}
Expand Down
6 changes: 3 additions & 3 deletions cpp/src/prims/detail/per_v_transform_reduce_e.cuh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020-2024, NVIDIA CORPORATION.
* Copyright (c) 2020-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.
Expand Down Expand Up @@ -69,7 +69,7 @@ namespace cugraph {

namespace detail {

int32_t constexpr per_v_transform_reduce_e_kernel_block_size = 512;
int32_t constexpr per_v_transform_reduce_e_kernel_block_size = 256;
int32_t constexpr per_v_transform_reduce_e_kernel_high_degree_reduce_any_block_size = 128;

template <typename Iterator, typename default_t, typename Enable = void>
Expand Down Expand Up @@ -1610,7 +1610,7 @@ void per_v_transform_reduce_e(raft::handle_t const& handle,
edge_partition.major_range_first(),
handle.get_stream());
assert((*key_segment_offsets).back() == *((*key_segment_offsets).rbegin() + 1));
assert(sorted_uniue_nzd_key_last == sorted_unique_key_first + (*key_segment_offsets).back());
assert(sorted_unique_nzd_key_last == sorted_unique_key_first + (*key_segment_offsets).back());
}
} else {
tmp_vertex_value_output_first = vertex_value_output_first;
Expand Down
4 changes: 2 additions & 2 deletions cpp/src/prims/fill_edge_src_dst_property.cuh
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -973,7 +973,7 @@ void fill_edge_minor_property(raft::handle_t const& handle,
assert(graph_view.local_vertex_partition_range_size() ==
(GraphViewType::is_storage_transposed
? graph_view.local_edge_partition_src_range_size()
: graph_view.local_edge_partition_dst_range_sizse()));
: graph_view.local_edge_partition_dst_range_size()));
if constexpr (contains_packed_bool_element) {
thrust::for_each(handle.get_thrust_policy(),
sorted_unique_vertex_first,
Expand Down
5 changes: 2 additions & 3 deletions cpp/src/prims/vertex_frontier.cuh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2020-2024, NVIDIA CORPORATION.
* Copyright (c) 2020-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.
Expand Down Expand Up @@ -227,8 +227,7 @@ void retrieve_vertex_list_from_bitmap(
{
using vertex_t = typename thrust::iterator_traits<OutputVertexIterator>::value_type;

assert((comm.get_rank() != root) ||
(bitmap.size() >= packed_bool_size(vertex_range_last - vertex_ragne_first)));
assert((bitmap.size() >= packed_bool_size(vertex_range_last - vertex_range_first)));
detail::copy_if_nosync(thrust::make_counting_iterator(vertex_range_first),
thrust::make_counting_iterator(vertex_range_last),
thrust::make_transform_iterator(
Expand Down
3 changes: 2 additions & 1 deletion cpp/tests/sampling/detail/nbr_sampling_validate.cu
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <rmm/device_scalar.hpp>
#include <rmm/device_uvector.hpp>

#include <cuda/std/functional>
#include <thrust/count.h>
#include <thrust/distance.h>
#include <thrust/equal.h>
Expand Down Expand Up @@ -275,7 +276,7 @@ bool validate_sampling_depth(raft::handle_t const& handle,
tuple_iter + d_distances.size(),
d_distances.begin(),
[] __device__(auto tuple) {
return thrust::min(thrust::get<0>(tuple), thrust::get<1>(tuple));
return cuda::std::min(thrust::get<0>(tuple), thrust::get<1>(tuple));
});
}
}
Expand Down
6 changes: 4 additions & 2 deletions cpp/tests/utilities/check_utilities.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019-2024, NVIDIA CORPORATION.
* Copyright (c) 2019-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.
Expand All @@ -20,6 +20,8 @@
#include <raft/core/handle.hpp>
#include <raft/core/span.hpp>

#include <cuda/std/functional>

#include <numeric>
#include <type_traits>
#include <vector>
Expand Down Expand Up @@ -95,7 +97,7 @@ struct device_nearly_equal {
bool __device__ operator()(type_t lhs, type_t rhs) const
{
return std::abs(lhs - rhs) <
thrust::max(thrust::max(lhs, rhs) * threshold_ratio, threshold_magnitude);
cuda::std::max(thrust::max(lhs, rhs) * threshold_ratio, threshold_magnitude);
}
};

Expand Down
2 changes: 1 addition & 1 deletion dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ dependencies:
- output_types: [conda, pyproject]
packages:
- &dask rapids-dask-dependency==25.2.*,>=0.0.0a0
- &numba numba>=0.57
- &numba numba>=0.59.1,<0.61.0a0
- &numpy numpy>=1.23,<3.0a0
- output_types: conda
packages:
Expand Down
2 changes: 1 addition & 1 deletion python/cugraph-service/server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies = [
"cupy-cuda11x>=12.0.0",
"dask-cuda==25.2.*,>=0.0.0a0",
"dask-cudf==25.2.*,>=0.0.0a0",
"numba>=0.57",
"numba>=0.59.1,<0.61.0a0",
"numpy>=1.23,<3.0a0",
"rapids-dask-dependency==25.2.*,>=0.0.0a0",
"rmm==25.2.*,>=0.0.0a0",
Expand Down
2 changes: 1 addition & 1 deletion python/cugraph/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies = [
"dask-cudf==25.2.*,>=0.0.0a0",
"fsspec[http]>=0.6.0",
"libcugraph==25.2.*,>=0.0.0a0",
"numba>=0.57",
"numba>=0.59.1,<0.61.0a0",
"numpy>=1.23,<3.0a0",
"pylibcugraph==25.2.*,>=0.0.0a0",
"pylibraft==25.2.*,>=0.0.0a0",
Expand Down

0 comments on commit 1a7dad4

Please sign in to comment.