From 3847d9ac3cbfcc88430931fcf455aa988c22ad18 Mon Sep 17 00:00:00 2001 From: gejin Date: Tue, 24 Mar 2020 14:17:06 +0800 Subject: [PATCH] [SYCL] remove unexpected double in complex SPIRV for float support Signed-off-by: gejin --- libdevice/fallback-complex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdevice/fallback-complex.cpp b/libdevice/fallback-complex.cpp index e83856dd469cf..b60dbfa8723ad 100644 --- a/libdevice/fallback-complex.cpp +++ b/libdevice/fallback-complex.cpp @@ -285,7 +285,7 @@ DEVICE_EXTERN_C float __complex__ __sqrf(float __complex__ z) { float z_real = __devicelib_crealf(z); float z_imag = __devicelib_cimagf(z); - return CMPLXF((z_real + z_imag) * (z_real - z_imag), 2.0 * z_real * z_imag); + return CMPLXF((z_real + z_imag) * (z_real - z_imag), 2.0f * z_real * z_imag); } DEVICE_EXTERN_C