[BUG] Using incx
or incy
with linalg::axpy
results in invalid memory access
#944
Labels
bug
Something isn't working
Describe the bug
Setting
incx
orincy
to a value other than1
inlinalg::axpy
results in invalid memory access, for the mdspan versions oflingalg::axpy
This is because the input x/y mdspan's are assumed to be c_contiguous - and having incx or incy > 1 will cause the cublasaxpy function to access memory past whats valid from the mdspan
.data_handle()
/.size()
.Steps/Code to reproduce bug
Set incx/incy > 1 when calling linalg::axpy
Expected behavior
It seems like the incx/incy parameters shouldn't be part of the public API for the mdspan version of
linalg::axpy
- and maybe should be gotten from the mdspan::stride accessor (forlayout_stride
spans).The text was updated successfully, but these errors were encountered: