Skip to content

Commit b9a051f

Browse files
committed
Improve error msg and pass by ref.
Signed-off-by: JackAKirk <[email protected]>
1 parent 24d3aa1 commit b9a051f

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

sycl/include/sycl/ext/oneapi/matrix/matrix-tensorcores.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
//===-- matrix-tensor-cores.hpp - tensor cores matrix ext impl --*- C++ -*---===//
2+
//===--- matrix-tensorcores.hpp - tensor cores matrix ext impl --*- C++ -*---===//
33
//
44
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
55
// See https://llvm.org/LICENSE.txt for license information.

sycl/include/sycl/ext/oneapi/matrix/matrix-unified.hpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// ===--------------------------------------------------------------------=== //
88

99
#pragma once
10-
#include <sycl/ext/oneapi/matrix/matrix-tensor-cores.hpp>
10+
#include <sycl/ext/oneapi/matrix/matrix-tensorcores.hpp>
1111

1212
namespace sycl {
1313
__SYCL_INLINE_VER_NAMESPACE(_V1) {
@@ -21,9 +21,7 @@ template <typename Group, typename T, size_t NumRows, size_t NumCols, use Use,
2121
inline __SYCL_ALWAYS_INLINE void
2222
joint_matrix_fill(Group sg,
2323
joint_matrix<T, Use, NumRows, NumCols, Layout, Group> &res,
24-
const T2 v) {
25-
// We kept the dynamic "sg" in joint_matrix_fill to match the other DPC++
26-
// functions
24+
const T2& v) {
2725
std::ignore = sg;
2826
#if defined(__SYCL_DEVICE_ONLY__)
2927
#if defined(__NVPTX__)
@@ -143,7 +141,7 @@ joint_matrix_mad(
143141
return D;
144142
} else {
145143
assert(false && "Ta != Tb : In the CUDA backend joint_matrix_mad "
146-
"requires that joint_matrix data types match");
144+
"requires that joint_matrix data types Ta and Tb match");
147145
}
148146
#endif // defined(__NVPTX__)
149147
#else

0 commit comments

Comments
 (0)