-
Notifications
You must be signed in to change notification settings - Fork 788
[SYCL][libdevice] Add SIMD emulation APIs for imf libdevice #6327
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][libdevice] Add SIMD emulation APIs for imf libdevice #6327
Conversation
Signed-off-by: jinge90 <[email protected]>
Signed-off-by: jinge90 <[email protected]>
Signed-off-by: jinge90 <[email protected]>
Is there some testing plan for this fix (LIT/unit tests)? |
I am also working on some tests for those imf simd emulate functions and will create PR in intel/llvm-test-suite. Thanks very much. |
Signed-off-by: jinge90 <[email protected]>
Signed-off-by: jinge90 <[email protected]>
Signed-off-by: jinge90 <[email protected]>
Signed-off-by: jinge90 <[email protected]>
Signed-off-by: jinge90 <[email protected]>
Signed-off-by: jinge90 <[email protected]>
Signed-off-by: jinge90 <[email protected]>
Signed-off-by: jinge90 <[email protected]>
Signed-off-by: jinge90 <[email protected]>
Signed-off-by: jinge90 <[email protected]>
Hi, @xtian-github Thanks very much. |
Hi, @v-klochkov Thanks very much. |
Signed-off-by: jinge90 <[email protected]>
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, @intel/dpcpp-tools-reviewers Thanks very much. |
Hi, @pvchupin |
Hi, @pvchupin |
Hi, @intel/dpcpp-tools-reviewers |
Signed-off-by: jinge90 <[email protected]>
Hi, @v-klochkov |
This PR requires approval from @intel/dpcpp-tools-reviewers. @asudarsa - can you review this fix please? |
Hi, @pvchupin |
ping @asudarsa |
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.
This change looks good to me. Thanks.
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
@jinge90, can you add PR description please? |
We added some imf(intel math) APIs in libdevice: #5999, #6327, those APIs are C interface which means we don't expect users to call them directly in SYCL kernel since SYCL programming uses cpp. This PR will provide cpp wrapper for those imf APIs which users can call directly in source, the approach is similar to STL , std math functions will call corresponding C math functions or compiler math builtins. The user scenario should be following: cpp #include <sycl/ext/intel/math.hpp> ... float x, y, z; z = sycl::ext::intel::math::copysign(x, y); ... ``
Signed-off-by: jinge90 [email protected]