Skip to content

[Matrix][SYCL] Change the template parameter of joint_matrix_fill to … #5277

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 1 commit into from
Jan 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sycl/include/sycl/ext/oneapi/matrix/matrix-jit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,16 +203,16 @@ joint_matrix_mad(Group sg, joint_matrix<T1, M, K, LayoutA, Group> &mA,
}

template <typename Group, typename T, size_t NumRows, size_t NumCols,
matrix_layout Layout>
matrix_layout Layout, typename T2>
inline __SYCL_ALWAYS_INLINE void
joint_matrix_fill(Group sg,
joint_matrix<T, NumRows, NumCols, Layout, Group> &res,
const T v) {
const T2 v) {
// We kept the unused "sg" in joint_matrix_fill to match the other DPC++
// functions
(void)sg;
#ifdef __SYCL_DEVICE_ONLY__
res.spvm = __spirv_CompositeConstruct<T, NumRows, NumCols>(v);
res.spvm = __spirv_CompositeConstruct<T, NumRows, NumCols>(static_cast<T>(v));
#else
(void)res;
(void)v;
Expand Down