Skip to content

__half2float question #2648

@jinz2014

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions