Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| openacc [2016/12/05 18:33] – [Benchmarks] admin | openacc [2022/05/24 16:07] (Version actuelle) – admin | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | FIXME Broken | ||
| + | |||
| ====== OpenACC by example ====== | ====== OpenACC by example ====== | ||
| Ligne 78: | Ligne 80: | ||
| A parallel function | A parallel function | ||
| that runs on the **GPU**</ | that runs on the **GPU**</ | ||
| - | < | + | < |
| ==== Kernels Directive ==== | ==== Kernels Directive ==== | ||
| The kernels construct expresses that a region may contain parallelism and the compiler determines what can safely be | The kernels construct expresses that a region may contain parallelism and the compiler determines what can safely be | ||
| Ligne 124: | Ligne 126: | ||
| !$acc data | !$acc data | ||
| do i=1,n | do i=1,n | ||
| - | a(i) = 0.0 | + | |
| - | b(i) = 1.0 | + | b(i) = 1.0 |
| - | c(i) = 2.0 | + | c(i) = 2.0 |
| end do | end do | ||
| + | |||
| do i=1,n | do i=1,n | ||
| - | a(i) = b(i) + c(i) | + | |
| end do | end do | ||
| + | |||
| !$acc end data | !$acc end data | ||
| </ | </ | ||
| Ligne 139: | Ligne 143: | ||
| === Data clause === | === Data clause === | ||
| - | |'' | + | |'' |
| - | |'' | + | |'' |
| - | |'' | + | |'' |
| - | |'' | + | |'' |
| - | |'' | + | |'' |
| ===== Compile & Run===== | ===== Compile & Run===== | ||
| Ligne 254: | Ligne 258: | ||
| ===== Benchmarks ===== | ===== Benchmarks ===== | ||
| We are used Matrix Multiply to compare execution of four executions. | We are used Matrix Multiply to compare execution of four executions. | ||
| - | + | ||
| - | ^Problem Size^**OpenACC** | + | Compilation level used is '' |
| + | |||
| + | ^Problem Size^**OpenACC** | ||
| | 1024 | | 1024 | ||
| | 2048 | | 2048 | ||
| | 4096 | | 4096 | ||
| - | | 5120 | + | | 5120 |
| | 6144 | | 6144 | ||