Skip to content

Commit b51bb87

Browse files
authored
[SYCL] Remove unexpected double in complex SPIR-V for float support (#1381)
Signed-off-by: gejin <ge.jin@intel.com>
1 parent b48f08f commit b51bb87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libdevice/fallback-complex.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ DEVICE_EXTERN_C
285285
float __complex__ __sqrf(float __complex__ z) {
286286
float z_real = __devicelib_crealf(z);
287287
float z_imag = __devicelib_cimagf(z);
288-
return CMPLXF((z_real + z_imag) * (z_real - z_imag), 2.0 * z_real * z_imag);
288+
return CMPLXF((z_real + z_imag) * (z_real - z_imag), 2.0f * z_real * z_imag);
289289
}
290290

291291
DEVICE_EXTERN_C

0 commit comments

Comments
 (0)