| 319 | |
| 320 | |
| 321 | = Cholesky benchmark (OmpSs-2+MKL) = |
| 322 | |
| 323 | Users must clone/download this example's repository from [https://pm.bsc.es/gitlab/ompss-2/examples/cholesky] and transfer it to a DEEP working directory. |
| 324 | |
| 325 | == Description == |
| 326 | |
| 327 | This benchmark is a decomposition of a Hermitian, positive-definite matrix into the product of a lower triangular matrix and its conjugate transpose. This Cholesky decomposition is carried out with OmpSs-2 using tasks with priorities. |
| 328 | |
| 329 | There are **3 implementations** of this benchmark. |
| 330 | |
| 331 | The code uses the CBLAS and LAPACKE interfaces to both BLAS and LAPACK. |
| 332 | By default we try to find MKL, ATLAS and LAPACKE from the MKLROOT, LIBRARY_PATH and C_INCLUDE_PATH environment variables. If you are using an implementation with other linking requirements, please edit the `LIBS` entry in the makefile accordingly. |
| 333 | |
| 334 | The Makefile has three additional rules: |
| 335 | * **run:** runs each version one after the other. |
| 336 | * **run-graph:** runs the OmpSs-2 versions with the graph instrumentation. |
| 337 | * **run-extrae:** runs the OmpSs-2 versions with the extrae instrumentation. |
| 338 | |
| 339 | For the graph instrumentation, it is recommended to view the resulting PDF in single page mode and to advance through the pages. This will show the actual instantiation and execution of the code. For the extrae instrumentation, extrae must be loaded and available at least through the `LD_LIBRARY_PATH` environment variable. |
| 340 | |
| 341 | == Execution instructions == |
| 342 | |
| 343 | `./cholesky SIZE BLOCK_SIZE` |
| 344 | |
| 345 | where: |
| 346 | * `SIZE` is the number of elements per side of the matrix. |
| 347 | * The decomposition is made by blocks of `BLOCK_SIZE` by `BLOCK_SIZE` elements. |
| 348 | |
| 349 | == References == |
| 350 | |
| 351 | * [https://pm.bsc.es/gitlab/ompss-2/examples/cholesky] |
| 352 | * [https://pm.bsc.es/ftp/ompss-2/doc/examples/02-examples/cholesky-mkl/README.html] |
| 353 | * [https://en.wikipedia.org/wiki/Eight_queens_puzzle] |