-
Notifications
You must be signed in to change notification settings - Fork 745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SYCL] Add some trivial util functions for half type. #6691
Conversation
Signed-off-by: jinge90 <ge.jin@intel.com>
Signed-off-by: jinge90 <ge.jin@intel.com>
Signed-off-by: jinge90 <ge.jin@intel.com>
Signed-off-by: jinge90 <ge.jin@intel.com>
/verify with intel/llvm-test-suite#1250 |
/verify with intel/llvm-test-suite#1250 |
Hi, @xtian-github , @zettai-reido and @intel/llvm-reviewers-runtime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi, |
/verify with intel/llvm-test-suite#1250 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi, @pvchupin Thanks very much. |
Hi, @pvchupin |
@jinge90, please address @romanovvlad comments. And please get @intel/llvm-reviewers-runtime approval. |
Hi, @romanovvlad @intel/llvm-reviewers-runtime Thanks very much. |
This is OK. |
@jinge90, please do this. |
Done. Thanks very much. |
Hi, @intel/llvm-reviewers-runtime and @sergey-semenov Thanks very much. |
Hi, @intel/llvm-reviewers-runtime and @sergey-semenov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The usage of sycl::half and CUDA half is different, sycl::half overrides arithmetic and comparison operators(+, -, *, /, >, <,==.!=...) while CUDA math provides those arithmetic and comparison functionalities via a bunch of util functions. This PR provides some sycl::half util functions aligning with CUDA math, users who are porting half related CUDA code to SYCL will spend less effort with those util functions' help.
Signed-off-by: jinge90 ge.jin@intel.com