Skip to content

Commit c59823c

Browse files
authored
Update CL_FP_FMA definition language to remove ambiguity (#1391)
* Update CL_FP_FMA definition language to remove ambiguity Previously, having CL_FP_FMA==0 could be interpreted as the fma builtin function not being implemented. This new wording makes it clearer that the flag only specifies how the builtin function is implemented. * Fix CL_FP_FMA wording for full-profile. * Fix CL_FP_FMA wording for half type. * Fix text layout consistency
1 parent 6a320c1 commit c59823c

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

api/embedded_profile.asciidoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ Device Queries>> table.
237237
{CL_FP_ROUND_TO_INF} - round to positive and negative infinity
238238
rounding modes supported
239239

240-
{CL_FP_FMA} - IEEE754-2008 fused multiply-add is supported.
240+
{CL_FP_FMA} - the fma kernel builtin is implemented using
241+
hardware-accelerated fused multiply-add as defined in IEEE754-2008.
241242

242243
{CL_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT} - divide and sqrt are correctly
243244
rounded as defined by the IEEE754 specification.

api/opencl_platform_layer.asciidoc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,8 @@ include::{generated}/api/version-notes/CL_DEVICE_SINGLE_FP_CONFIG.asciidoc[]
948948
{CL_FP_ROUND_TO_ZERO_anchor} - round to zero rounding mode supported +
949949
{CL_FP_ROUND_TO_INF_anchor} - round to positive and negative infinity
950950
rounding modes supported +
951-
{CL_FP_FMA_anchor} - IEEE754-2008 fused multiply-add is supported +
951+
{CL_FP_FMA_anchor} - the fma kernel builtin is implemented using
952+
hardware-accelerated fused multiply-add as defined in IEEE754-2008. +
952953
{CL_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT_anchor} - divide and sqrt are correctly
953954
rounded as defined by the IEEE754 specification +
954955
{CL_FP_SOFT_FLOAT_anchor} - Basic floating-point operations (such as
@@ -981,7 +982,8 @@ Also see {cl_khr_fp64_EXT}.
981982
{CL_FP_ROUND_TO_ZERO} - round to zero rounding mode supported +
982983
{CL_FP_ROUND_TO_INF} - round to positive and negative infinity
983984
rounding modes supported +
984-
{CL_FP_FMA} - IEEE754-2008 fused multiply-add is supported +
985+
{CL_FP_FMA} - the fma kernel builtin is implemented using
986+
hardware-accelerated fused multiply-add as defined in IEEE754-2008. +
985987
{CL_FP_SOFT_FLOAT} - Basic floating-point operations (such as
986988
addition, subtraction, multiplication) are implemented in software
987989

@@ -2003,7 +2005,8 @@ include::{generated}/api/version-notes/CL_DEVICE_HALF_FP_CONFIG.asciidoc[]
20032005
{CL_FP_ROUND_TO_ZERO} - round to zero rounding mode supported +
20042006
{CL_FP_ROUND_TO_INF} - round to positive and negative infinity
20052007
rounding modes supported +
2006-
{CL_FP_FMA} - IEEE754-2008 fused multiply-add is supported +
2008+
{CL_FP_FMA} - the fma kernel builtin is implemented using
2009+
hardware-accelerated fused multiply-add as defined in IEEE754-2008. +
20072010
{CL_FP_SOFT_FLOAT} - Basic floating-point operations (such as
20082011
addition, subtraction, multiplication) are implemented in software
20092012

0 commit comments

Comments
 (0)