dgemv returns wrong results

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)
Post Reply
Posts: 11
Joined: Thu Jul 01, 2010 12:12 pm

dgemv returns wrong results

Post by itabhiyanta » Wed Dec 14, 2011 10:01 am


i am using magmablas_dgemv function for calculating a matrix vector product however the results do not seem to match those generated by the magma_dpotrf_gpu (followed by) magma_dpotrs_gpu.

the matrix is really small 8x8. the hardware i am running it on is a C2050.

does anyone face a similar problem? if yes could you suggest what must be done to solve this issue?

kindly help
thanks in advance

Posts: 918
Joined: Fri Jan 06, 2012 2:13 pm

Re: dgemv returns wrong results

Post by mgates3 » Fri Jan 06, 2012 4:39 pm

I'm not sure that I understand your question. Doing gemv( A, x ) yields A*x. Doing potrf( A ) then potrs( A, x ) yields A^{-1}*x, or in Matlab notation, A\x. These two, A*x and A\x, should not be the same.

Can you clarify what are your inputs to each function, and what is the expected output?


Post Reply