Skip to content

__half2float question #2648

Open
Open

Description

@jinz2014

For the CUDA function: __half2float(x),

Are the two functions below equivalent in a SYCL program ? If 1 is not "equal" to 2, are there simple functions for conversion between half and float ? The

1 sycl::vec<sycl::half, 1>(x).convert<float, sycl::rounding_mode::automatic>()[0]

2 float(x)

Activity

  1. tomflinda commented on Feb 5, 2025

    @tomflinda
    Contributor

    Good advice for bullet 2. We will do a further investigation and refine it if the result is accepted.

  2. added a commit that references this issue on Mar 7, 2025
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