-
Notifications
You must be signed in to change notification settings - Fork 751
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] Add support for -foffload-fp32-prec-div/sqrt options. #15836
Open
zahiraam
wants to merge
25
commits into
intel:sycl
Choose a base branch
from
zahiraam:TargetPrecOption
base: sycl
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+798
−54
Open
Changes from 24 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
f8caf83
Add support for -ftarget-prec-div/sqrt options.
zahiraam 00ffb5a
Added fast-math run lines to LIT tests.
zahiraam 795dd38
Renamed the options accordingly.
zahiraam 78a9005
Fix format.
zahiraam 50e71c0
Changed the place where the options are added in order for the options
zahiraam 54f2409
Fix format.
zahiraam bdf78d7
Addresed review comments.
zahiraam 8cd6d8b
Put the code to handle the options in RenderFloatingPointOptions
zahiraam 755d630
Addressed review comments.
zahiraam 27011c8
Fixed up condition to clearer code.
zahiraam ff2b3d9
Addressed review comments.
zahiraam 07752e2
Add extension SPV_INTEL_fp_max_error.
zahiraam aa909d2
Fixed LIT test.
zahiraam fcc4786
Addressed review comment.
zahiraam 24711fd
Addressed review comments.
zahiraam 56314b7
Renamed function.
zahiraam e643027
Addressed review comments.
zahiraam b25e5ac
Changed SplitFPAccuracyVal to be a static function instead of a lambda.
zahiraam ce00296
Restricting the use of the options to sycl only.
zahiraam bc01759
Remove restriction on Cuda/Hip and changed the code so that the div
zahiraam c5fffc5
Removed unused lines in CodeGenSYC/offload-fp32-div-sqrt.cpp.
zahiraam f2fb8b2
Renamed div to fdiv to avoid confusion.
zahiraam 83c9b31
This is an attempt to fix the DeviceLib/cmath_test.cpp issue.
zahiraam 0efc825
Removing the latest change that attempted to fix the LIT issue.
zahiraam e1de775
Merge remote-tracking branch 'origin/sycl' into TargetPrecOption
zahiraam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Why do we compare with un-mangled sqrt?
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.
FuncName is the output of FD->getName() which returns a simple identifier. https://github.com/intel/llvm/blob/sycl/clang/include/clang/AST/Decl.h#L280
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.
So clang/test/CodeGenSYCL/offload-fp32-div-sqrt.cpp will pass even with
extern "C"
removed fromsqrt
function declaration?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.
What if the user has a function in their own namespace that happens to be named "sqrt"?