Skip to content

Commit

Permalink
fixed some lambdas
Browse files Browse the repository at this point in the history
  • Loading branch information
mcordery committed Dec 31, 2024
1 parent 3689de7 commit 9c3bdbe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ set(CUGRAPH_SOURCES
# src/sampling/random_walks_mg_v32_e32.cu
# src/community/detail/common_methods_mg_v64_e64.cu
# src/community/detail/common_methods_mg_v32_e32.cu
#raft span src/community/detail/common_methods_sg_v64_e64.cu
#raft span src/community/detail/common_methods_sg_v32_e32.cu
src/community/detail/common_methods_sg_v64_e64.cu
#raft span + previous line src/community/detail/common_methods_sg_v32_e32.cu
#raft span src/community/detail/refine_sg_v64_e64.cu
#raft span src/community/detail/refine_sg_v32_e32.cu
# src/community/detail/refine_mg_v64_e64.cu
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/community/detail/common_methods.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ weight_t compute_modularity(
handle.get_thrust_policy(),
cluster_weights.begin(),
cluster_weights.end(),
[] __device__(weight_t p) -> weight_t -> weight_t { return p * p; },
[] __device__(weight_t p) -> weight_t { return p * p; },
weight_t{0},
thrust::plus<weight_t>());

Expand Down
6 changes: 3 additions & 3 deletions cpp/src/structure/graph_view_impl.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ edge_t count_edge_partition_multi_edges(
execution_policy,
thrust::make_counting_iterator(edge_partition.major_range_first()) + (*segment_offsets)[2],
thrust::make_counting_iterator(edge_partition.major_range_first()) + (*segment_offsets)[3],
[edge_partition] __device__(auto major) -> edge_t -> edge_t {
[edge_partition] __device__(auto major) -> edge_t {
auto major_offset = edge_partition.major_offset_from_major_nocheck(major);
vertex_t const * indices->edge_t{nullptr};
[[maybe_unused]] edge_t edge_offset->edge_t{};
Expand All @@ -386,7 +386,7 @@ edge_t count_edge_partition_multi_edges(
thrust::make_counting_iterator(vertex_t{0}),
thrust::make_counting_iterator(*(edge_partition.dcs_nzd_vertex_count())),
[edge_partition,
major_start_offset = (*segment_offsets)[3]] __device__(auto idx) -> edge_t -> edge_t {
major_start_offset = (*segment_offsets)[3]] __device__(auto idx) -> edge_t {
auto major_idx =
major_start_offset + idx; // major_offset != major_idx in the hypersparse region
vertex_t const * indices->edge_t{nullptr};
Expand All @@ -410,7 +410,7 @@ edge_t count_edge_partition_multi_edges(
thrust::make_counting_iterator(edge_partition.major_range_first()),
thrust::make_counting_iterator(edge_partition.major_range_first()) +
edge_partition.major_range_size(),
[edge_partition] __device__(auto major) -> edge_t -> edge_t {
[edge_partition] __device__(auto major) -> edge_t {
auto major_offset = edge_partition.major_offset_from_major_nocheck(major);
vertex_t const * indices->edge_t{nullptr};
[[maybe_unused]] edge_t edge_offset->edge_t{};
Expand Down

0 comments on commit 9c3bdbe

Please sign in to comment.