Skip to content

Commit 325fb3d

Browse files
authored
Update spmv.cpp
1 parent a1f426e commit 325fb3d

File tree

1 file changed

+1
-1
lines changed
  • DirectProgramming/C++SYCL/SparseLinearAlgebra/merge-spmv/src

1 file changed

+1
-1
lines changed

DirectProgramming/C++SYCL/SparseLinearAlgebra/merge-spmv/src/spmv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ void MergeSparseMatrixVector(queue &q, int compute_units, int work_group_size,
353353
// Check if two input vectors are equal.
354354
bool VerifyVectorsAreEqual(float *u, float *v) {
355355
for (int i = 0; i < n; i++) {
356-
if (fabs(u[i] - v[i]) > 1E-06) {
356+
if (sycl::fabs(u[i] - v[i]) > 1E-06) {
357357
return false;
358358
}
359359
}

0 commit comments

Comments
 (0)