Loading...
Searching...
No Matches
14. Examples in StarPU Sources

We have already seen some examples in Chapter Basic Examples. A tutorial is also installed in the directory `share/doc/starpu/tutorial/`.

Many examples are also available in the StarPU sources in the directory `examples/`. Simple examples include:

`incrementer/`

  Trivial incrementation test.

`basic_examples/`

  Simple documented Hello world and vector/scalar product (as shown in Basic Examples), matrix product examples (as shown in Performance Model Example), an example using the blocked matrix data interface, an example using the variable data interface, and an example using different formats on CPUs and GPUs.

`matvecmult/`

  OpenCL example from NVidia, adapted to StarPU.

`axpy/`

  AXPY CUBLAS operation adapted to StarPU.

`native_fortran/`

  Example of using StarPU's native Fortran support.

`fortran90/`

  Example of Fortran 90 bindings, using C marshalling wrappers.

`fortran/`
  Example of Fortran 77 bindings, using C marshalling wrappers.

More advanced examples include:

`filters/`

  Examples using filters, as shown in Partitioning Data.

`lu/`

  LU matrix factorization, see for instance `xlu_implicit.c`

`cholesky/`
  Cholesky matrix factorization, see for instance `cholesky_implicit.c`.