-
Notifications
You must be signed in to change notification settings - Fork 849
[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 2 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,88 +24,106 @@ | |
| #ifdef __SYCL_DEVICE_ONLY__ | ||
| template <typename T, std::size_t R, std::size_t C, | ||
| __spv::MatrixLayout L = __spv::MatrixLayout::RowMajor, | ||
| __spv::MatrixUse U = __spv::MatrixUse::Unnecessary, | ||
| __spv::Scope::Flag S = __spv::Scope::Flag::Subgroup> | ||
| extern SYCL_EXTERNAL __spv::__spirv_JointMatrixINTEL<T, R, C, L, S> * | ||
| extern SYCL_EXTERNAL __spv::__spirv_JointMatrixINTEL<T, R, C, L, U, S> * | ||
| __spirv_JointMatrixLoadINTEL(T *Ptr, std::size_t Stride, | ||
| __spv::MatrixLayout Layout = L, | ||
| __spv::Scope::Flag Sc = S, int MemOperand = 0); | ||
|
|
||
| template <typename T, std::size_t R, std::size_t C, | ||
| __spv::MatrixLayout L = __spv::MatrixLayout::RowMajor, | ||
| __spv::MatrixUse U = __spv::MatrixUse::Unnecessary, | ||
| __spv::Scope::Flag S = __spv::Scope::Flag::Subgroup> | ||
| extern SYCL_EXTERNAL void __spirv_JointMatrixStoreINTEL( | ||
| T *Ptr, __spv::__spirv_JointMatrixINTEL<T, R, C, L, S> *Object, | ||
| T *Ptr, __spv::__spirv_JointMatrixINTEL<T, R, C, L, U, S> *Object, | ||
| std::size_t Stride, __spv::MatrixLayout Layout = L, | ||
| __spv::Scope::Flag Sc = S, int MemOperand = 0); | ||
|
|
||
| template <typename T1, typename T2, std::size_t M, std::size_t K, std::size_t N, | ||
| __spv::MatrixUse UA = __spv::MatrixUse::Unnecessary, | ||
| __spv::MatrixUse UB = __spv::MatrixUse::Unnecessary, | ||
| __spv::MatrixUse UC = __spv::MatrixUse::Unnecessary, | ||
| __spv::MatrixLayout LA = __spv::MatrixLayout::RowMajor, | ||
| __spv::MatrixLayout LB = __spv::MatrixLayout::RowMajor, | ||
| __spv::MatrixLayout LC = __spv::MatrixLayout::RowMajor, | ||
| __spv::Scope::Flag S = __spv::Scope::Flag::Subgroup> | ||
| extern SYCL_EXTERNAL __spv::__spirv_JointMatrixINTEL<T2, M, N, LC, S> * | ||
| extern SYCL_EXTERNAL __spv::__spirv_JointMatrixINTEL<T2, M, N, LC, UC, S> * | ||
| __spirv_JointMatrixMadINTEL( | ||
| __spv::__spirv_JointMatrixINTEL<T1, M, K, LA, S> *A, | ||
| __spv::__spirv_JointMatrixINTEL<T1, K, N, LB, S> *B, | ||
| __spv::__spirv_JointMatrixINTEL<T2, M, N, LC, S> *C, | ||
| __spv::__spirv_JointMatrixINTEL<T1, M, K, LA, UA, S> *A, | ||
| __spv::__spirv_JointMatrixINTEL<T1, K, N, LB, UB, S> *B, | ||
| __spv::__spirv_JointMatrixINTEL<T2, M, N, LC, UC, S> *C, | ||
| __spv::Scope::Flag Sc = __spv::Scope::Flag::Subgroup); | ||
|
|
||
| template <typename T1, typename T2, typename T3, std::size_t M, std::size_t K, | ||
| std::size_t N, __spv::MatrixLayout LA = __spv::MatrixLayout::RowMajor, | ||
| std::size_t N, __spv::MatrixUse UA = __spv::MatrixUse::Unnecessary, | ||
| __spv::MatrixUse UB = __spv::MatrixUse::Unnecessary, | ||
| __spv::MatrixUse UC = __spv::MatrixUse::Unnecessary, | ||
| __spv::MatrixLayout LA = __spv::MatrixLayout::RowMajor, | ||
| __spv::MatrixLayout LB = __spv::MatrixLayout::RowMajor, | ||
| __spv::MatrixLayout LC = __spv::MatrixLayout::RowMajor, | ||
| __spv::Scope::Flag S = __spv::Scope::Flag::Subgroup> | ||
| extern SYCL_EXTERNAL __spv::__spirv_JointMatrixINTEL<T3, M, N, LC, S> * | ||
| extern SYCL_EXTERNAL __spv::__spirv_JointMatrixINTEL<T3, M, N, LC, UC, S> * | ||
| __spirv_JointMatrixUUMadINTEL( | ||
| __spv::__spirv_JointMatrixINTEL<T1, M, K, LA, S> *A, | ||
| __spv::__spirv_JointMatrixINTEL<T2, K, N, LB, S> *B, | ||
| __spv::__spirv_JointMatrixINTEL<T3, M, N, LC, S> *C, | ||
| __spv::__spirv_JointMatrixINTEL<T1, M, K, LA, UA, S> *A, | ||
| __spv::__spirv_JointMatrixINTEL<T1, K, N, LB, UB, S> *B, | ||
| __spv::__spirv_JointMatrixINTEL<T3, M, N, LC, UC, S> *C, | ||
| __spv::Scope::Flag Sc = __spv::Scope::Flag::Subgroup); | ||
|
|
||
| template <typename T1, typename T2, typename T3, std::size_t M, std::size_t K, | ||
| std::size_t N, __spv::MatrixLayout LA = __spv::MatrixLayout::RowMajor, | ||
| std::size_t N, __spv::MatrixUse UA = __spv::MatrixUse::Unnecessary, | ||
| __spv::MatrixUse UB = __spv::MatrixUse::Unnecessary, | ||
| __spv::MatrixUse UC = __spv::MatrixUse::Unnecessary, | ||
| __spv::MatrixLayout LA = __spv::MatrixLayout::RowMajor, | ||
| __spv::MatrixLayout LB = __spv::MatrixLayout::RowMajor, | ||
| __spv::MatrixLayout LC = __spv::MatrixLayout::RowMajor, | ||
| __spv::Scope::Flag S = __spv::Scope::Flag::Subgroup> | ||
| extern SYCL_EXTERNAL __spv::__spirv_JointMatrixINTEL<T3, M, N, LC, S> * | ||
| extern SYCL_EXTERNAL __spv::__spirv_JointMatrixINTEL<T3, M, N, LC, UC, S> * | ||
| __spirv_JointMatrixUSMadINTEL( | ||
| __spv::__spirv_JointMatrixINTEL<T1, M, K, LA, S> *A, | ||
| __spv::__spirv_JointMatrixINTEL<T2, K, N, LB, S> *B, | ||
| __spv::__spirv_JointMatrixINTEL<T3, M, N, LC, S> *C, | ||
| __spv::__spirv_JointMatrixINTEL<T1, M, K, LA, UA, S> *A, | ||
| __spv::__spirv_JointMatrixINTEL<T1, K, N, LB, UB, S> *B, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. T2 |
||
| __spv::__spirv_JointMatrixINTEL<T3, M, N, LC, UC, S> *C, | ||
| __spv::Scope::Flag Sc = __spv::Scope::Flag::Subgroup); | ||
|
|
||
| template <typename T1, typename T2, typename T3, std::size_t M, std::size_t K, | ||
| std::size_t N, __spv::MatrixLayout LA = __spv::MatrixLayout::RowMajor, | ||
| std::size_t N, __spv::MatrixUse UA = __spv::MatrixUse::Unnecessary, | ||
| __spv::MatrixUse UB = __spv::MatrixUse::Unnecessary, | ||
| __spv::MatrixUse UC = __spv::MatrixUse::Unnecessary, | ||
| __spv::MatrixLayout LA = __spv::MatrixLayout::RowMajor, | ||
| __spv::MatrixLayout LB = __spv::MatrixLayout::RowMajor, | ||
| __spv::MatrixLayout LC = __spv::MatrixLayout::RowMajor, | ||
| __spv::Scope::Flag S = __spv::Scope::Flag::Subgroup> | ||
| extern SYCL_EXTERNAL __spv::__spirv_JointMatrixINTEL<T3, M, N, LC, S> * | ||
| extern SYCL_EXTERNAL __spv::__spirv_JointMatrixINTEL<T3, M, N, LC, UC, S> * | ||
| __spirv_JointMatrixSUMadINTEL( | ||
| __spv::__spirv_JointMatrixINTEL<T1, M, K, LA, S> *A, | ||
| __spv::__spirv_JointMatrixINTEL<T2, K, N, LB, S> *B, | ||
| __spv::__spirv_JointMatrixINTEL<T3, M, N, LC, S> *C, | ||
| __spv::__spirv_JointMatrixINTEL<T1, M, K, LA, UA, S> *A, | ||
| __spv::__spirv_JointMatrixINTEL<T1, K, N, LB, UB, S> *B, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. T2 |
||
| __spv::__spirv_JointMatrixINTEL<T3, M, N, LC, UC, S> *C, | ||
| __spv::Scope::Flag Sc = __spv::Scope::Flag::Subgroup); | ||
|
|
||
| template <typename T, std::size_t R, std::size_t C, | ||
| __spv::MatrixLayout L = __spv::MatrixLayout::RowMajor, | ||
| __spv::MatrixUse U = __spv::MatrixUse::Unnecessary, | ||
| __spv::Scope::Flag S = __spv::Scope::Flag::Subgroup> | ||
| extern SYCL_EXTERNAL __spv::__spirv_JointMatrixINTEL<T, R, C, L, S> * | ||
| extern SYCL_EXTERNAL __spv::__spirv_JointMatrixINTEL<T, R, C, L, U, S> * | ||
| __spirv_CompositeConstruct(const T v); | ||
|
|
||
| template <typename T, std::size_t R, std::size_t C, __spv::MatrixLayout U, | ||
| template <typename T, std::size_t R, std::size_t C, __spv::MatrixUse U, | ||
| __spv::MatrixLayout L, | ||
| __spv::Scope::Flag S = __spv::Scope::Flag::Subgroup> | ||
| extern SYCL_EXTERNAL size_t __spirv_JointMatrixWorkItemLengthINTEL( | ||
| __spv::__spirv_JointMatrixINTEL<T, R, C, U, S> *); | ||
| __spv::__spirv_JointMatrixINTEL<T, R, C, L, U, S> *); | ||
|
|
||
| template <typename T, std::size_t R, std::size_t C, __spv::MatrixLayout U, | ||
| template <typename T, std::size_t R, std::size_t C, __spv::MatrixUse U, | ||
| __spv::MatrixLayout L, | ||
| __spv::Scope::Flag S = __spv::Scope::Flag::Subgroup> | ||
| extern SYCL_EXTERNAL T __spirv_VectorExtractDynamic( | ||
| __spv::__spirv_JointMatrixINTEL<T, R, C, U, S> *, size_t i); | ||
| __spv::__spirv_JointMatrixINTEL<T, R, C, L, U, S> *, size_t i); | ||
|
|
||
| template <typename T, std::size_t R, std::size_t C, __spv::MatrixLayout U, | ||
| template <typename T, std::size_t R, std::size_t C, __spv::MatrixUse U, | ||
| __spv::MatrixLayout L, | ||
| __spv::Scope::Flag S = __spv::Scope::Flag::Subgroup> | ||
| extern SYCL_EXTERNAL __spv::__spirv_JointMatrixINTEL<T, R, C, U, S> * | ||
| __spirv_VectorInsertDynamic(__spv::__spirv_JointMatrixINTEL<T, R, C, U, S> *, | ||
| extern SYCL_EXTERNAL __spv::__spirv_JointMatrixINTEL<T, R, C, L, U, S> * | ||
| __spirv_VectorInsertDynamic(__spv::__spirv_JointMatrixINTEL<T, R, C, L, U, S> *, | ||
| T val, size_t i); | ||
|
|
||
| #ifndef __SPIRV_BUILTIN_DECLARATIONS__ | ||
|
|
||
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 | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. change to 2 |
||
| #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 should be T2, right?