Skip to content

Commit b461ad6

Browse files
authored
Fix failing ArmPL SCAL tests (#723)
1 parent d9d5169 commit b461ad6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/blas/backends/armpl/armpl_level1.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,8 @@ void scal(sycl::queue& queue, int64_t n, T alpha, sycl::buffer<U, 1>& x, int64_t
347347
queue.submit([&](sycl::handler& cgh) {
348348
auto accessor_x = x.template get_access<sycl::access::mode::read_write>(cgh);
349349
host_task<class armpl_kernel_scal>(cgh, [=]() {
350-
cblas_func(n, cast_to_void_if_complex(alpha), accessor_x.GET_MULTI_PTR, incx);
350+
cblas_func(n, cast_to_void_if_complex(alpha), accessor_x.GET_MULTI_PTR,
351+
(const int)std::abs(incx));
351352
});
352353
});
353354
}

0 commit comments

Comments
 (0)