Skip to content

Commit

Permalink
[SYCL][Matrix] Update builtin name for the checked matrix construct S…
Browse files Browse the repository at this point in the history
…PIR-V instruction (intel#12787)

In order to support OpCooperativeMatrixConstructCheckedINTEL instruction
the builtin name must be updated to the corresponding spelling:
__spirv_CooperativeMatrixConstructCheckedINTEL
  • Loading branch information
VyacheslavLevytskyy authored Feb 22, 2024
1 parent b0f584c commit 0fc5129
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions sycl/include/CL/__spirv/spirv_ops.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ template <typename T, typename Tp, std::size_t R, std::size_t C,
__spv::Scope::Flag S = __spv::Scope::Flag::Subgroup>
extern __DPCPP_SYCL_EXTERNAL
__spv::__spirv_JointMatrixINTEL<Tp, R, C, L, S, U> *
__spirv_CompositeConstructCheckedINTEL(const T Value, size_t Height,
size_t Stride, size_t Width,
size_t CoordX, size_t CoordY);
__spirv_CooperativeMatrixConstructCheckedINTEL(const T Value, size_t Height,
size_t Stride, size_t Width,
size_t CoordX, size_t CoordY);

template <typename T, typename Tp, std::size_t R, std::size_t C,
__spv::MatrixUse U,
Expand Down
2 changes: 1 addition & 1 deletion sycl/include/sycl/ext/oneapi/matrix/matrix-intel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ inline __SYCL_ALWAYS_INLINE void joint_matrix_fill_checked(
using storage_element_type =
typename oneapi::detail::jm_type_interpretation_helper_trait<
T>::storage_element_type;
Res.spvm = __spirv_CompositeConstructCheckedINTEL<
Res.spvm = __spirv_CooperativeMatrixConstructCheckedINTEL<
storage_element_type, T, NumRows, NumCols,
spv_matrix_use_traits<Use>::value,
spv_matrix_layout_traits<Layout>::value>(
Expand Down

0 comments on commit 0fc5129

Please sign in to comment.