Skip to content

Commit

Permalink
Fix clang intrinsic warning (#2292)
Browse files Browse the repository at this point in the history
Store operations are void.

Authors:
  - Aaron Siddhartha Mondal (https://github.com/aaronmondal)
  - Corey J. Nolet (https://github.com/cjnolet)

Approvers:
  - Corey J. Nolet (https://github.com/cjnolet)

URL: #2292
  • Loading branch information
aaronmondal authored May 21, 2024
1 parent efcd11f commit ac6be9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/scripts/__clang_cuda_additional_intrinsics.h
Original file line number Diff line number Diff line change
@@ -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__
Expand Down Expand Up @@ -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), \
Expand Down

0 comments on commit ac6be9e

Please sign in to comment.