From f07b9ca61b4e35cfaf893b4a53294c51db176aab Mon Sep 17 00:00:00 2001 From: Michael Schellenberger Costa Date: Thu, 3 Apr 2025 21:07:18 +0200 Subject: [PATCH] Do not pretend to default initialize a device lambda Found in CCCL CI --- cpp/src/prims/count_if_v.cuh | 8 ++++---- cpp/src/prims/transform_reduce_v.cuh | 8 ++++---- cpp/src/prims/update_v_frontier.cuh | 16 ++++++++-------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/cpp/src/prims/count_if_v.cuh b/cpp/src/prims/count_if_v.cuh index 410bea44c24..82fac117bdb 100644 --- a/cpp/src/prims/count_if_v.cuh +++ b/cpp/src/prims/count_if_v.cuh @@ -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. @@ -35,9 +35,9 @@ namespace detail { template struct count_if_call_v_op_t { - vertex_t local_vertex_partition_range_first{}; - VertexValueInputIterator vertex_value_input_first{}; - VertexOp v_op{}; + vertex_t local_vertex_partition_range_first; + VertexValueInputIterator vertex_value_input_first; + VertexOp v_op; __device__ bool operator()(vertex_t i) { diff --git a/cpp/src/prims/transform_reduce_v.cuh b/cpp/src/prims/transform_reduce_v.cuh index 08764dabe8a..eeb08eab8e3 100644 --- a/cpp/src/prims/transform_reduce_v.cuh +++ b/cpp/src/prims/transform_reduce_v.cuh @@ -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. @@ -36,9 +36,9 @@ namespace detail { template struct transform_reduce_call_v_op_t { - vertex_t local_vertex_partition_range_first{}; - VertexValueInputIterator vertex_value_input_first{}; - VertexOp v_op{}; + vertex_t local_vertex_partition_range_first; + VertexValueInputIterator vertex_value_input_first; + VertexOp v_op; __device__ T operator()(vertex_t i) { diff --git a/cpp/src/prims/update_v_frontier.cuh b/cpp/src/prims/update_v_frontier.cuh index 7ecf56b5cb0..8b679fb88a0 100644 --- a/cpp/src/prims/update_v_frontier.cuh +++ b/cpp/src/prims/update_v_frontier.cuh @@ -51,10 +51,10 @@ template struct update_v_frontier_call_v_op_t { - VertexValueInputIterator vertex_value_input_first{}; - VertexValueOutputIterator vertex_value_output_first{}; - VertexOp v_op{}; - vertex_t local_vertex_partition_range_first{}; + VertexValueInputIterator vertex_value_input_first; + VertexValueOutputIterator vertex_value_output_first; + VertexOp v_op; + vertex_t local_vertex_partition_range_first; __device__ uint8_t operator()(thrust::tuple pair) const { @@ -87,10 +87,10 @@ struct update_v_frontier_call_v_op_t { - VertexValueInputIterator vertex_value_input_first{}; - VertexValueOutputIterator vertex_value_output_first{}; - VertexOp v_op{}; - vertex_t local_vertex_partition_range_first{}; + VertexValueInputIterator vertex_value_input_first; + VertexValueOutputIterator vertex_value_output_first; + VertexOp v_op; + vertex_t local_vertex_partition_range_first; __device__ uint8_t operator()(key_t key) const {