-
Notifications
You must be signed in to change notification settings - Fork 788
[SYCL][Doc] Add isnan to bfloat16 math doc #7958
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
Conversation
Signed-off-by: jinge90 <[email protected]>
Hi, @gmlueck and @JackAKirk In CUDA math, NV has "hisnan2": https://docs.nvidia.com/cuda/cuda-math-api/group__CUDA__MATH____BFLOAT162__COMPARISON.html#group__CUDA__MATH____BFLOAT162__COMPARISON_1gf613f74f4c0220e6d85b91b086e2788a So, what's your idea? Do we need to align with NV math? If so, the return type should be sycl::marray<sycl::ext::oneapi::bfloat16, N>. Thanks very much. |
Hmm well spotted. My guess is they have only done this because they don't have a corresponding __nv_bool2 to __nv_bfloat162. My instinct is to agree with you that in the SYCL case it should return sycl::marray<bool, N>. |
Yes, I agree too. |
sycl/doc/extensions/experimental/sycl_ext_oneapi_bfloat16_math_functions.asciidoc
Outdated
Show resolved
Hide resolved
LGTM |
Hi, @intel/dpcpp-specification-reviewers and @gmlueck |
sycl/doc/extensions/experimental/sycl_ext_oneapi_bfloat16_math_functions.asciidoc
Outdated
Show resolved
Hide resolved
…_functions.asciidoc Co-authored-by: Greg Lueck <[email protected]>
Hi, @gmlueck Thanks very much. |
No, LGTM! |
Signed-off-by: jinge90 [email protected]