oneapi-src / oneapi-src/SYCLomatic

__half2float question

Open
#2,648 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
LLVM
Stars
291
Forks
99
Avg merge
5d 5h
Merged PRs (30d)
1

Description

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)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the __half2float question and the two SYCL conversion expressions shown in the issue. Determine whether the expressions are equivalent and document the supported simple half-to-float conversion guidance; the payload names no source file or test to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.