Hello:
Attached I send a simple testing program for magmablas_dswap. I think that the function has several bugs.
First of all, if I try to use magmablas_dswap with increments equals zero or positive in vector x and y, tha result is that the vector x is copied into y but y is not changed to x, so the result is x in x and x in y.
Second, if I try to operate with increments equals -1, an error CUBLAS_STATUS_MAPPING_ERROR occurs (code error 11 in cublas_api.h).
This tests can be done in the attached file changing the value of the variable 'incCalc' in order to try differents increments (-1, 0, 1)
Cheers
PS: I'm using CUDA 4.1 and gcc 4.6.3 from Debian Sid
