-
Notifications
You must be signed in to change notification settings - Fork 762
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][Driver][HIP] Do not define __CUDA_ARCH__ for HIP-AMD targets #15443
Merged
Merged
Changes from 10 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
daa81eb
[SYCL][Driver][HIP] Do not define __CUDA_ARCH__ for HIP-AMD targets
GeorgeWeb 7062717
Add clang Driver test
GeorgeWeb d421f18
Merge remote-tracking branch 'upstream/sycl' into georgi/hip-undef-cu…
GeorgeWeb c279604
Split NVPTX and AMDGPU filecheck tests
GeorgeWeb 9f8f5e5
Do not add fcuda-is-device to CC1 when compiling for HIPAMD
GeorgeWeb 34a8d9a
Combine the fcuda-is-device test for both triples
GeorgeWeb bf72790
Restrict fcuda-is-device to NVPTX targets and add a comment
GeorgeWeb 6220620
cleanup
GeorgeWeb 5808cf3
Move the check for SYCL restricting adding CUDA_ARCH macro to the pre…
GeorgeWeb ce47bfc
Remove the AMDGPU test for fcuda-is-device
GeorgeWeb 917f3ae
Simplify the CHECK-HIP-NOT sycl-macro test check line
GeorgeWeb e27ee12
Merge remote-tracking branch 'upstream/sycl' into georgi/hip-undef-cu…
GeorgeWeb 7d7b808
Merge remote-tracking branch 'upstream/sycl' into georgi/hip-undef-cu…
GeorgeWeb 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
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.
NOTE:
This was previously added to avoid setting it to a non-zero value but is not needed anymore after the changes in this PR completely disable the definition of the macro for SYCL offload. Additionally, the upstream llvm-project doesn't have this line https://github.com/llvm/llvm-project/blob/main/clang/lib/Basic/Targets/AMDGPU.cpp#L311.