-
Notifications
You must be signed in to change notification settings - Fork 734
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] Make SYCL math functions overloads instead of templates #9753
Conversation
It was decided to change all built-in functions from templates to overloads. This patch changes non-marray part of "4.17.5. Math functions". Co-authored-by: Steffen Larsen <steffen.larsen@intel.com>
Why? |
Replied internally. |
Thanks. I'll post a link here, when there is a spec-change PR, describing these changes. |
@steffenlarsen @dm-vodopyanov this patch finally passes CI, but I'm going to reduce it a bit by outlining the defines - #10026. |
__SYCL_DEF_BUILTIN_GENFLOAT | ||
#undef __SYCL_BUILTIN_DEF | ||
|
||
// svgenfloat fract (svgenfloat x, genfloatptr iptr) |
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.
I just noticed there are no some built-ins that accept arguments with gen*ptr:
genfloat fract(genfloat x, genfloatptr iptr)
genfloat frexp(genfloat x, genintptr exp)
genfloat lgamma_r(genfloat x, genintptr signp)
genfloat modf(genfloat x, genfloatptr iptr)
genfloat remquo(genfloat x, genfloat y, genintptr quo)
genfloat sincos(genfloat x, genfloatptr cosval)
I think it will be better to create a separate patch for them as this patch is already too big for review.
@intel/dpcpp-esimd-reviewers could you please take a look at esimd-related part? |
@intel/dpcpp-esimd-reviewers, friendly ping. |
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.
esimd changes look good to me, slava may have more feedback when he is back from vacation but i don't see anything insane
It was decided to change all built-in functions from templates to overloads. This patch changes non-marray part of "4.17.5. Math functions". Spec: KhronosGroup/SYCL-Docs#428 --------- Co-authored-by: Steffen Larsen <steffen.larsen@intel.com>
intel#9753)" This reverts commit 826d868.
It was decided to change all built-in functions from templates to overloads. This patch changes non-marray part of "4.17.5. Math functions".
Spec: KhronosGroup/SYCL-Docs#428