-
Notifications
You must be signed in to change notification settings - Fork 798
[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.
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.
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 |
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:
|
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. |
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]>
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-math
compiler flag to substitute the regulargenfloatf
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 correspondingnvvm
intrinsic is used.Tests in intel/llvm-test-suite#919