How to do A*B and A*x only

Open discussion for MAGMA

How to do A*B and A*x only

Postby cz0397 » Wed Apr 03, 2013 10:28 pm

Hi!
I am trying to use Jacobi iteration on magma. And I know the functions(sgemv and sgemm), but it must be A*B + C and A*X + y, which do something unnecessary. Does the lapack or magma fix this problem, or if I put zero in C or y, it will not be computed?

Thanks for answering.
David
cz0397
 
Posts: 15
Joined: Tue Feb 26, 2013 10:22 pm

Re: How to do A*B and A*x only

Postby cz0397 » Wed Apr 10, 2013 12:47 am

Is the only way is to set beta 0? By lapack, when setting beta 0, it won't computing the rest.
cz0397
 
Posts: 15
Joined: Tue Feb 26, 2013 10:22 pm

Re: How to do A*B and A*x only

Postby mgates3 » Wed Apr 10, 2013 3:37 pm

Yes, set beta=0. Also, y or C should be initialized to valid numbers, i.e., not NAN or INF, which would be propagated.
-mark
mgates3
 
Posts: 330
Joined: Fri Jan 06, 2012 2:13 pm

Re: How to do A*B and A*x only

Postby luiceur » Mon May 06, 2013 6:31 am

I use cudaMemset to make sure there is not garbage in that section of memory
luiceur
 
Posts: 26
Joined: Tue Jul 10, 2012 4:38 am


Return to User discussion

Who is online

Users browsing this forum: Google [Bot] and 1 guest