axpy_batched

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)
Post Reply
genestoltz
Posts: 1
Joined: Wed Sep 18, 2019 8:36 am

axpy_batched

Post by genestoltz » Wed Sep 18, 2019 8:40 am

Am I correct to assume that axpy_batched has not yet been implemented?

What would be the preferred way to execute a batched operation for a scalar times a vector (Don't care about the addition)?

Thanks.

mgates3
Posts: 897
Joined: Fri Jan 06, 2012 2:13 pm

Re: axpy_batched

Post by mgates3 » Wed Sep 18, 2019 12:01 pm

So you really want scal_batched:

y_i = alpha * y_i for i = 1, ..., batch_size

Is that right?

Are your vectors scattered in memory, or packed into a single array? If in a single array, would a matrix scale function meet your needs, i.e.,

A = alpha * A

for an m-by-batch_size matrix A.

-mark

Post Reply