Hello!
I’m use this function in my programm two times (for L and then for U matrix).
When i fill real and image part of cuComplex vector by random counts, on exit i have wrong vector.
If i generate cuComplex vector with zero image part, the result vector will true (compare with matlab).
Who used this function? Please help with my problem.
I will thankful for help.
I use different dimentions starting with two (dim == lda)
All measures on GPU i compare with matlab.
Only the first value of result vector was true in all measures (becouse L-matrix have unit diag)
Other values differed from 0.5 to 5.0 regard to real value.
I guess that Matlab is going to use double precision. And comparing with Ctrsv in single precision might lead to discrepancy. Singfle precision on solver can quickly accumulate accuracy errors.
Could you try with Ztrsv (double complex)?
Also could you try using Ctrsm and Ztrsm with m=1 which is equivalent to Ctrsv/Ztrsv