From a1ed8bc341d91ac356d1827224f50f457a55bcde Mon Sep 17 00:00:00 2001 From: Aaron Siddhartha Mondal Date: Mon, 6 May 2024 18:14:07 +0200 Subject: [PATCH] Fix clang intrinsic warning Store operations are void. --- cpp/scripts/__clang_cuda_additional_intrinsics.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/scripts/__clang_cuda_additional_intrinsics.h b/cpp/scripts/__clang_cuda_additional_intrinsics.h index b9c032dc45..8b1335e5d1 100644 --- a/cpp/scripts/__clang_cuda_additional_intrinsics.h +++ b/cpp/scripts/__clang_cuda_additional_intrinsics.h @@ -1,4 +1,4 @@ -// Copyright (c) 2022, NVIDIA CORPORATION. +// Copyright (c) 2022-2024, NVIDIA CORPORATION. #ifndef __CLANG_CUDA_ADDITIONAL_INTRINSICS_H__ #define __CLANG_CUDA_ADDITIONAL_INTRINSICS_H__ #ifndef __CUDA__ @@ -233,7 +233,7 @@ __MAKE_LD4(cv, float4, float, "f32", "f", : "memory") } #define __MAKE_ST4(cop, c_typ, int_typ, ptx_typ, inl_typ) \ - __device__ __forceinline__ c_typ __st##cop(c_typ* addr, c_typ v) \ + __device__ __forceinline__ void __st##cop(c_typ* addr, c_typ v) \ { \ int_typ v1 = v.x, v2 = v.y, v3 = v.z, v4 = v.w; \ asm("st." #cop ".v4." ptx_typ " [%0], {%1, %2, %3, %4};" ::__LDG_PTR(addr), \