Skip to content

__half2float question #2648

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

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