Skip to content

Commit 135a787

Browse files
authored
libclc: clspv: fma: remove fp16 implementation (#135002)
clspv is already handling generation of fp16. This implementation is preventing clspv from making the best choice to use an emulation on top of fp32-fma, or the native fp16-fma, depending on the command-line arguments.
1 parent a625bc6 commit 135a787

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

libclc/clspv/lib/math/fma.cl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,3 @@
1212

1313
_CLC_DEFINE_TERNARY_BUILTIN(float, fma, __clc_sw_fma, float, float, float)
1414

15-
#ifdef cl_khr_fp16
16-
17-
#pragma OPENCL EXTENSION cl_khr_fp16 : enable
18-
19-
_CLC_DEF _CLC_OVERLOAD half fma(half a, half b, half c) {
20-
return (half)mad((float)a, (float)b, (float)c);
21-
}
22-
_CLC_TERNARY_VECTORIZE(_CLC_DEF _CLC_OVERLOAD, half, fma, half, half, half)
23-
24-
#endif

0 commit comments

Comments
 (0)