-
Notifications
You must be signed in to change notification settings - Fork 794
[SYCL][libclc][CUDA] Add --ffast-math support #5801
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
This patch allows the `--ffast-math` compiler flag to substitute the regular `genfloatf` math built-ins with their `::native` versions. Moreover, this patch completes the support of natives built-ins for `libclc/ptx-nvidiacl` connecting them with the `__nv_fast` functions present in libdevice. If a fast function is not available in libdevice the corresponding `nvvm` intrinsic is used.
mlychkov
left a comment
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.
llvm changes LGTM.
smanna12
left a comment
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.
FE changes LGTM.
|
/verify with intel/llvm-test-suite#919 |
bader
left a comment
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.
Recovering my approve.
@pgorlani, to get this PR merged, you should ping @intel/llvm-reviewers-runtime team and investigate why new test added by intel/llvm-test-suite#919 doesn't pass.
|
Hi @bader, thanks for the prompt answer!
Are you referring to the outcome of If not, the test introduced by intel/llvm-test-suite#919 is expected to fail if it is run on a branch that doesn't support the |
I see that there were two runs:
|
smanna12
left a comment
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.
FE changes LGTM
|
Thank you so much for the info, @bader. I had missed the failings in Windows. I pushed a commit that should fix them. |
mlychkov
left a comment
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.
LLVM changes LGTM.
Remove empty line. Co-authored-by: Mikhail Lychkov <[email protected]>
Remove empty line. Co-authored-by: Mikhail Lychkov <[email protected]>
smanna12
left a comment
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.
FE changes LGTM
|
/verify with intel/llvm-test-suite#919 |
|
All the tests passed. Ping @intel/llvm-reviewers-runtime |
|
Ping @v-klochkov |
|
Thanks to everybody! Would it be possible to merge this PR? |
This patch adds tests for intel/llvm#5801
This patch adds tests for intel#5801
This patch allows the
--ffast-mathcompiler flag to substitute the regulargenfloatfmath built-ins with their::nativeversions.Moreover, this patch completes the support of natives built-ins for
libclc/ptx-nvidiaclconnecting them with the__nv_fastfunctions present in libdevice. If a fast function is not available in libdevice the correspondingnvvmintrinsic is used.Tests in intel/llvm-test-suite#919