Many cublas level 1 functions, i.e. cublasaxpy, cublascopy, cublasdot, cublasrot, cublasrotm, cublasswap, have similar arguments
cublasStatus_t cublasSaxpy(cublasHandle_t handle, int n, const float *x, int incx, float *y, int incy)
where parameter n is “number of elements in the vector x and y.”
My question is given different incx and incy values, do vector x and y have to have n elements without causing memory access issue? For instance, if x has n_x elements and y has n_y elements where n_x = 2 * n_y. Will below call cause memory access violation issue?
cublasSaxpy(handle, n_x, x, 2, y, 1)
Thank you very much for your answer.