From 75e91e9073f95c6db900f62230a1f36e28e1e601 Mon Sep 17 00:00:00 2001 From: Jatin Chaudhary Date: Fri, 19 Feb 2021 03:00:31 -0800 Subject: [PATCH] SWDEV-272811 - hipCabs returns a double and uses sqrtf, which maps to f32 operation. sqrt should be used instead Change-Id: I4f74ee8853113fcebfa508bea9308ae93c7ad13b [ROCm/clr commit: 474493b929989de947ff610aff257139766fe6b3] --- projects/clr/hipamd/include/hip/amd_detail/hip_complex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/include/hip/amd_detail/hip_complex.h b/projects/clr/hipamd/include/hip/amd_detail/hip_complex.h index 9acd0d3d0d..4a59b52a54 100644 --- a/projects/clr/hipamd/include/hip/amd_detail/hip_complex.h +++ b/projects/clr/hipamd/include/hip/amd_detail/hip_complex.h @@ -214,7 +214,7 @@ __device__ __host__ static inline hipDoubleComplex hipCdiv(hipDoubleComplex p, h return ret; } -__device__ __host__ static inline double hipCabs(hipDoubleComplex z) { return sqrtf(hipCsqabs(z)); } +__device__ __host__ static inline double hipCabs(hipDoubleComplex z) { return sqrt(hipCsqabs(z)); } #if __cplusplus