Skip to content

Commit afa625f

Browse files
committed
Fix errors with Matrix Operands
1 parent 59765a6 commit afa625f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ constexpr uint32_t CalculateMatrixOperand() {
9898
if constexpr (std::is_same<Td, sycl::ext::oneapi::bfloat16>::value)
9999
returnValue += static_cast<uint32_t>(
100100
__spv::MatrixOperands::MatrixResultBFloat16ComponentsINTEL);
101-
if constexpr (std::is_signed<Ta>::value && std::is_unsigned<Tb>::value)
101+
if constexpr (std::is_signed<Ta>::value)
102102
returnValue += static_cast<uint32_t>(
103103
__spv::MatrixOperands::MatrixASignedComponentsKHR);
104-
if constexpr (std::is_unsigned<Ta>::value && std::is_signed<Tb>::value)
104+
if constexpr (std::is_signed<Tb>::value)
105105
returnValue += static_cast<uint32_t>(
106106
__spv::MatrixOperands::MatrixBSignedComponentsKHR);
107107
return returnValue;

0 commit comments

Comments
 (0)