From d8d96f0788278f1ce7d6dce3ba8528bc26521e8a Mon Sep 17 00:00:00 2001 From: Ye Wang <52801275+wangyems@users.noreply.github.com> Date: Wed, 8 Mar 2023 13:05:49 -0800 Subject: [PATCH] Fix a build issue (#14944) ### Description ### Motivation and Context https://github.com/microsoft/onnxruntime/issues/14940 --- onnxruntime/contrib_ops/cuda/bert/rotary_embedding_util.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/onnxruntime/contrib_ops/cuda/bert/rotary_embedding_util.h b/onnxruntime/contrib_ops/cuda/bert/rotary_embedding_util.h index c232b0e3ce..4630cf82a2 100644 --- a/onnxruntime/contrib_ops/cuda/bert/rotary_embedding_util.h +++ b/onnxruntime/contrib_ops/cuda/bert/rotary_embedding_util.h @@ -175,7 +175,12 @@ inline __device__ float4 add(float4 a, float4 b) inline __device__ Float8_ add(Float8_ a, Float8_ b) { - return; + Float8_ c; + c.x = add(a.x, b.x); + c.y = add(a.y, b.y); + c.z = add(a.z, b.z); + c.w = add(a.w, b.w); + return c; } ////////////////////////////////////////////////////////////////////////////////////////////////////