Skip to content

Support for bfloat16 in OpenBLAS  #2560

Closed

Description

@RajalakshmiSR
No description provided.

Activity

  1. RajalakshmiSR commented on Apr 14, 2020

    @RajalakshmiSR
    Author

    To discuss about PR
    #2559

  2. martin-frbg commented on Apr 20, 2020

    @martin-frbg
    Collaborator

    Merged the PR after the last issues seen on Appveyor were confirmed fixed after moving the "Windows/CL" build to Azure CI. (Appveyor jobs are still shown as queued, these should provide final confirmation eventually -- EDIT: all complete now).
    It is important to note that any bfloat16 BLAS functions outside SHGEMM - even trivial functions like MIN/MAX or SUM are almost guaranteed to be wrong right now, as they are simply mapped to the corresponding single-precision implementations without even a proper cast.

  3. xianyi commented on Apr 28, 2020

    @xianyi
    Collaborator

    Hi @martin-frbg ,

    Is it possible add something like BFLOAT16 makefile flag? If the user wants BFLOAT16, make BFLOAT16=1. By default, it is disabled.

  4. martin-frbg commented on Apr 28, 2020

    @martin-frbg
    Collaborator

    This should certainly be possible, if one is concerned about library size. I must admit I did not see an immediate need as there should be no other cause of problems when the bfloat16 code is present but not called by user code.

  5. RajalakshmiSR commented on Apr 28, 2020

    @RajalakshmiSR
    Author

    Just to clarify, shgemm() is enabled by default now.

  6. martin-frbg commented on Apr 28, 2020

    @martin-frbg
    Collaborator

    The CMAKE build already has a concept of BUILD_* options for the various data types (but I am not sure if this was ever actually tested or just seemed like a good idea - EDIT: it was probably taken from the LAPACK CMakeLists.txt and applies only there), but the Makefiles do not.
    My presumption was that storage-limited platforms would likely be wanting bfloat16 support for AI applications all the same (but this is not an area I am familiar with)

  7. martin-frbg commented on Apr 29, 2020

    @martin-frbg
    Collaborator

    Option added in #2590 - this could also be expanded to support BUILD_SINGLE etc. like netlib LAPACK does for both BLAS and LAPACK

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions