Skip to content

[SYCL] half math is using float precision for multiply/add/etc operators. #9809

Closed
@JackAKirk

Description

@JackAKirk

sycl::half operators like

*this = operator float() + static_cast<float>(rhs);
are converting to float for operations.

We can specialize the cuda backend case in order to call appropriate instructions for f16 precision operators instead, but I opened this issue to raise awareness for other backends/ to get potentially a general solution that lowers to backend specific instructions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions