-
Notifications
You must be signed in to change notification settings - Fork 769
[SYCL][CUDA] Adds PI CUDA support for reqd_work_group_size attribute #3735
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
483ce9c
[SYCL][CUDA] Adds PI CUDA support for reqd_work_group_size attribute
de11767
Fix driver offload test and minor changes
a6ccafc
Adjusting for feedback and more testing
4b04b37
Remove redundant check
5e829f1
Documentation changed to reflect post-link step changes
40dd00c
Make copy_single_file a transformation
25eef45
Adjusts updateCellValue parameters, comments, and errors
c952da0
Change code-splitting TODO
177c14d
Added assertion for 3 reqd_work_group_size metadata operands
c817325
Adds piProgramCreateWithBinary comment and makes new parameters more …
76ad746
Fix formatting
5fda49a
Fix sycl-offload-amdgcn test
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[A|B|C|D] | ||
aaa|bbb|100|XXX |
8 changes: 8 additions & 0 deletions
8
llvm/test/tools/file-table-tform/file-table-tform-single.test
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
-- Insert %S/Inputs/gold.txt into column A at row index 0 | ||
RUN: file-table-tform --replace_cell=A,0 %S/Inputs/s.txt %S/Inputs/gold.txt -o t.txt | ||
|
||
-- Copy file in column A from the only row | ||
RUN: file-table-tform --copy_single_file=A,0 t.txt -o u.txt | ||
|
||
-- Verify result | ||
RUN: diff u.txt %S/Inputs/gold.txt |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
; This test checks that the post-link tool generates SYCL program metadata. | ||
; | ||
; RUN: sycl-post-link -emit-program-metadata -S %s -o %t.files.table | ||
; RUN: FileCheck %s -input-file=%t.files.table --check-prefixes CHECK-TABLE | ||
; RUN: FileCheck %s -input-file=%t.files_0.prop --match-full-lines --check-prefixes CHECK-PROP | ||
|
||
target triple = "spir64-unknown-unknown-sycldevice" | ||
|
||
!0 = !{i32 1, i32 2, i32 4} | ||
|
||
define weak_odr spir_kernel void @SpirKernel1(float %arg1) !reqd_work_group_size !0 { | ||
call void @foo(float %arg1) | ||
ret void | ||
} | ||
|
||
declare void @foo(float) | ||
|
||
; CHECK-PROP: [SYCL/program metadata] | ||
; // Base64 encoding in the prop file (including 8 bytes length): | ||
; CHECK-PROP-NEXT: SpirKernel1@reqd_work_group_size=2|gBAAAAAAAAQAAAAACAAAAQAAAAA | ||
|
||
; CHECK-TABLE: [Code|Properties] | ||
; CHECK-TABLE-NEXT: {{.*}}files_0.prop | ||
; CHECK-TABLE-EMPTY: |
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.
Uh oh!
There was an error while loading. Please reload this page.