5.1. Saxpy-OpenACC benchmark¶
This benchmark runs several SAXPY operations in the GPU. SAXPY is a Level 1 operation in the Basic Linear Algebra Subprograms package, and is a common operation in computations with vector processors. SAXPY is a combination of scalar multiplication and vector addition.
01.multisaxpy_openacc: Parallel version using OpenACC tasks
To run the program use:
./multisaxpy_openacc SIZE BLOCK_SIZE ITERATIONS
SIZE is the number of elements of the vectors used on the SAXPY operation
The SAXPY operation will be applied to the vector in blocks that contains BLOCK_SIZE elements
ITERATIONS is the number of times the SAXPY operation is executed