[libclc] 135a787 - libclc: clspv: fma: remove fp16 implementation (#135002)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 10 02:02:01 PDT 2025
Author: Romaric Jodin
Date: 2025-04-10T10:01:57+01:00
New Revision: 135a7874dc2af6e2eb439db837eda273bdc54a63
URL: https://github.com/llvm/llvm-project/commit/135a7874dc2af6e2eb439db837eda273bdc54a63
DIFF: https://github.com/llvm/llvm-project/commit/135a7874dc2af6e2eb439db837eda273bdc54a63.diff
LOG: 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.
Added:
Modified:
libclc/clspv/lib/math/fma.cl
Removed:
################################################################################
diff --git a/libclc/clspv/lib/math/fma.cl b/libclc/clspv/lib/math/fma.cl
index 9b4710122bfad..3c67315d53f89 100644
--- a/libclc/clspv/lib/math/fma.cl
+++ b/libclc/clspv/lib/math/fma.cl
@@ -12,13 +12,3 @@
_CLC_DEFINE_TERNARY_BUILTIN(float, fma, __clc_sw_fma, float, float, float)
-#ifdef cl_khr_fp16
-
-#pragma OPENCL EXTENSION cl_khr_fp16 : enable
-
-_CLC_DEF _CLC_OVERLOAD half fma(half a, half b, half c) {
- return (half)mad((float)a, (float)b, (float)c);
-}
-_CLC_TERNARY_VECTORIZE(_CLC_DEF _CLC_OVERLOAD, half, fma, half, half, half)
-
-#endif
More information about the cfe-commits
mailing list