We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e7f225b + e224c7c commit 2133d20Copy full SHA for 2133d20
Publications/GPU-Opt-Guide/joint-matrix/joint-matrix.cpp
@@ -4,6 +4,7 @@
4
// SPDX-License-Identifier: MIT
5
// =============================================================
6
7
+#include <cmath>
8
#include <iostream>
9
#include <sycl/sycl.hpp>
10
@@ -136,7 +137,7 @@ int test() {
136
137
for (int i = 0; i < M; i++) {
138
for (int j = 0; j < N; j++) {
139
if constexpr (std::is_same_v<Tc, float>) {
- if (fabs(C[i * N + j] - D[i * N + j]) > BF16_EPSILON) {
140
+ if (std::fabs(C[i * N + j] - D[i * N + j]) > BF16_EPSILON) {
141
res = false;
142
std::cout << "Incorrect result in matrix. "
143
<< "i: " << i << ", j: " << j << ", Ref: " << D[i * N + j]
0 commit comments