-
Notifications
You must be signed in to change notification settings - Fork 808
[Matrix][SYCL] Add use argument for joint_matrix and add another feat… #5835
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 4 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
6bf0ce6
[Matrix][SYCL] Add use argument for joint_matrix and add another feat…
yubingex007-a11y 4f18f7f
small fix for testcase and set them xfail
yubingex007-a11y c722e18
Merge remote-tracking branch 'intel_llvm/sycl' into featuremacro
yubingex007-a11y 299ed92
change the order of use and layout and address dounia's comments
yubingex007-a11y ad6adf2
small fix
yubingex007-a11y 253e018
fix the lint's issue
yubingex007-a11y 42feae6
small fix again
yubingex007-a11y 28bf7e6
Merge remote-tracking branch 'intel_llvm/sycl' into matrixuse
yubingex007-a11y 29ff3fb
remove matrix layout && make "use" non-optional && remove use templat…
yubingex007-a11y ff083c9
add matrix-use support for bfloat16
yubingex007-a11y 2b1fbc9
Keep layout on the matrix type
yubingex007-a11y 39a09f6
place use at the end of __spirv_JointMatrixINTEL's template parameter
yubingex007-a11y 8c471ce
Merge remote-tracking branch 'intel_llvm/sycl' into matrixuse
yubingex007-a11y bd84452
fix Lint issue
yubingex007-a11y 3c1f7bc
address Lint issue
yubingex007-a11y 2a178bc
Merge remote-tracking branch 'intel_llvm/sycl' into matrixuse
yubingex007-a11y 07c5f28
address JarkAKirk's comments
yubingex007-a11y 3d3cb3a
remove lA, LB, LC from the mad function and replace them with unused
yubingex007-a11y 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,7 +38,7 @@ namespace sycl { | |
| // 2- provides JIT implementation (target agnostic) for the | ||
| // experimental matrix extension | ||
| #ifndef SYCL_EXT_ONEAPI_MATRIX | ||
| #define SYCL_EXT_ONEAPI_MATRIX 2 | ||
| #define SYCL_EXT_ONEAPI_MATRIX 3 | ||
|
||
| #endif | ||
| #define SYCL_EXT_ONEAPI_ASSERT 1 | ||
| #define SYCL_EXT_ONEAPI_COMPLEX_ALGORITHMS 1 | ||
|
|
||
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.
This matches the template arguments used for
joint_matrixin matrix-tensorcore.hpp (the current CUDA impl), except that the ordering is a little different (MatrixUse is the second template param in matrix-tensorcore.hpp). Trivial point, but we should align an ordering before merging the impls into a singleSYCL_EXT_ONEAPI_MATRIXversion.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.
This is a good point. Currently, this is at this position because it is an optional argument for now (to keep backward compatibility with the previous API (no use argument)).
Once this API with "use" argument is stable enough that we can remove the non-use-API, we can revise the order.
My personal preference is that it is probably a good idea to keep the arguments that might be become "optional" in the future as last. Today, "use" is required but layout is definitely optional.
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.
I suggest not to modify the order of template parameters of internal SPIR-V joint matrix type representation. The reason is that after this patch: #6535 the clang started to generate opaque matrix type like this:
spirv.JointMatrixINTEL._half_10_2_0_0and hence we can and will remove the array W/A. So it becomes crucial to keep the template parameter's order internally (it still can be changed in user-visible API).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, we will keep the Workaround in SPIRVRegularizeLLVMBase::adaptStructTypes for now. Since the W/A will be removed in the future, we'd better move the Use at the end of template param list, right?
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.
Yes