Skip to content

Commit

Permalink
finish 05_saxpy
Browse files Browse the repository at this point in the history
  • Loading branch information
xwuupb committed Apr 5, 2020
1 parent 652bb41 commit 19c425d
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,27 +49,10 @@ Paderborn University. The sub-directories are generally organized as:
`scalarAddition` adds two integers on host and accelerator, and also compares
the performance.

* 05_saxpy_v1
* 05_saxpy

`saxpy` performs the `axpy` operation on host as well as accelerator and then
compares the FLOPS performance.

The `axpy` operation is defined as:

$$ y := a * x + y $$

where:

- `a` is a scalar.
- `x` and `y` are vectors each with n elements.

The initial value of `a` and elements of `x[]` and `y[]` are specially
designed, so that the floating-point calculations on host and accelerator
can be compared _exactly_.

Please note that only _one GPU thread_ is used for the `axpy` calculation on
accelerator in this version. This can be verified by uncomment the `CFLAGS`
line in `configure.ac`.
`saxpy` performs the `saxpy` operation on host as well as accelerator.
The performance (in MB/s) for different implementations is also compared.

* 08_distThreads

Expand Down

0 comments on commit 19c425d

Please sign in to comment.