Skip to content

Conversation

@Guobing-Chen
Copy link
Contributor

Existing BFLOAT16 support is named with HALF or sh, which is not good as half
precision usually points to FP16 according to IEEE definition. We'd
specify this as BFLOAT16 instead of HALF. According to the discussion in
issue #2767, update related naming and prefix as BFLOAT16 and sb.

Details as:

  1. Change the generic control flag from BUILD_HALF to BUILD_BFLOAT16;
  2. Change the prefix of BFLOAT16 API from shxxxx to sbxxxx;
  3. Change related file names and other related with above prefix also;

Existing BFLOAT16 support is with HALF or sh, which is not good as half
precision usually points to FP16 according to IEEE definition. We'd
specify this as BFLOAT16 instead of HALF. According to the discussion in
issue OpenMathLib#2767, update related naming and prefix as BFLOAT16 and sb.

Details as:
1. Change the generic control flag from BUILD_HALF to BUILD_BFLOAT16;
2. Change the prefix of BFLOAT16 API from shxxxx to sbxxxx;
3. Change related file names and other related with above prefix also;
@Guobing-Chen Guobing-Chen force-pushed the BF16_data_type_naming branch from 4ce6bba to 93e748d Compare August 12, 2020 02:15
@martin-frbg
Copy link
Collaborator

Closing due to objection raised in #2767 (naming/API already agreed on with the netlib team)

@martin-frbg
Copy link
Collaborator

Reopened after further discussions in #2767, though most files will have been altered in the meantime unfortunately. (Opening a new PR may be easier than updating this - please do whatever seems more practical)
(And perhaps BUILD_BFLOAT is clear enough without the 16 that already features in BUILD_COMPLEX16 ?)

@martin-frbg
Copy link
Collaborator

superseding with #2886 due to the number of code changes since the original PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants