Skip to content
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][Matrix] Fix checked matrix instructions #13287

Merged
merged 6 commits into from
May 3, 2024

Conversation

MrSidims
Copy link
Contributor

@MrSidims MrSidims commented Apr 4, 2024

There were incorrectly named and had incorrect operands.

See #12497

@MrSidims MrSidims requested review from a team as code owners April 4, 2024 16:20
Copy link
Contributor

@KseniyaTikhomirova KseniyaTikhomirova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, please pay attention to tests

@MrSidims
Copy link
Contributor Author

Warning comes from unused stride of checked fill API. There should be no such parameter, it also doesn't exist in the spec. I'll remove it in this PR.

Copy link
Contributor

@dkhaldi dkhaldi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

size_t CoordY) {
#if defined(__SYCL_DEVICE_ONLY__)
using storage_element_type =
typename oneapi::detail::jm_type_interpretation_helper_trait<
T>::storage_element_type;
Res.spvm = __spirv_CooperativeMatrixConstructCheckedINTEL<
storage_element_type, T, NumRows, NumCols,
storage_element_type, T, CoordX, CoordY, NumRows, NumCols,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
storage_element_type, T, CoordX, CoordY, NumRows, NumCols,
storage_element_type, T, NumRows, NumCols,

I think it shouldn't be added (these template args correspond to spirv_ops.hpp:48-51)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, thanks!

size_t CoordY, __spv::MatrixLayout Layout = L, __spv::Scope::Flag Sc = S,
int MemOperand = 0);
extern __DPCPP_SYCL_EXTERNAL void __spirv_CooperativeMatrixStoreCheckedINTEL(
T *Ptr, size_t CoordX, size_t CoordY,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it ok that CoordX, CoordY are size_t? In SPV_INTEL_joint_matrix.asciidoc, there is "X offset must be a scalar 32-bit integer type".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be int32_t signed, it was fixed in another patch and after rebase it's brough here. Thanks!

MrSidims added 4 commits May 3, 2024 02:46
There were incorrectly named and had incorrect operands.

See intel#12497

Signed-off-by: Sidorov, Dmitry <[email protected]>
Signed-off-by: Sidorov, Dmitry <[email protected]>
Signed-off-by: Sidorov, Dmitry <[email protected]>
Signed-off-by: Sidorov, Dmitry <[email protected]>
@MrSidims MrSidims force-pushed the matrix-checked-fix branch from 3200cd0 to 3d41e97 Compare May 3, 2024 09:54
Signed-off-by: Sidorov, Dmitry <[email protected]>
@MrSidims MrSidims temporarily deployed to WindowsCILock May 3, 2024 10:00 — with GitHub Actions Inactive
@MrSidims MrSidims temporarily deployed to WindowsCILock May 3, 2024 10:31 — with GitHub Actions Inactive
Signed-off-by: Sidorov, Dmitry <[email protected]>
@MrSidims MrSidims temporarily deployed to WindowsCILock May 3, 2024 12:03 — with GitHub Actions Inactive
@MrSidims MrSidims temporarily deployed to WindowsCILock May 3, 2024 12:37 — with GitHub Actions Inactive
@MrSidims MrSidims requested a review from a team May 3, 2024 14:17
@MrSidims
Copy link
Contributor Author

MrSidims commented May 3, 2024

@intel/llvm-gatekeepers please help with the merge

@dm-vodopyanov dm-vodopyanov merged commit 646db9c into intel:sycl May 3, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants