From f74d4817244b266d0a1cb0225a738dafda4ef839 Mon Sep 17 00:00:00 2001 From: xcm4 Date: Sat, 11 Oct 2025 14:22:27 +0800 Subject: [PATCH] fix: Refactor tuple creation in NLM CUDA kernel for fixing nvcc build error --- modules/photo/src/cuda/nlm.cu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/photo/src/cuda/nlm.cu b/modules/photo/src/cuda/nlm.cu index 2c36239616..07e9a742cd 100644 --- a/modules/photo/src/cuda/nlm.cu +++ b/modules/photo/src/cuda/nlm.cu @@ -199,7 +199,7 @@ namespace cv { namespace cuda { namespace device static __device__ __forceinline__ const thrust::tuple, plus > op() { plus op; - return thrust::make_tuple(op, op); + return { op, op }; } }; template <> struct Unroll<2> @@ -218,7 +218,7 @@ namespace cv { namespace cuda { namespace device static __device__ __forceinline__ const thrust::tuple, plus, plus > op() { plus op; - return thrust::make_tuple(op, op, op); + return { op, op, op }; } }; template <> struct Unroll<3> @@ -237,7 +237,7 @@ namespace cv { namespace cuda { namespace device static __device__ __forceinline__ const thrust::tuple, plus, plus, plus > op() { plus op; - return thrust::make_tuple(op, op, op, op); + return { op, op, op, op }; } }; template <> struct Unroll<4>