Cray CX1000 Guía de usuario Pagina 118

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 169
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 117
Cray XMT Programming Environment Users Guide
However, when you add the may merge option these two loops
remain in the same region:
| for (int i = 0; i < size_foobar; i++) {
3 P | bar[i] = size_foobar - i;
|}
|
| #pragma mta max 50 streams per processor may merge
| for (int i = 0; i < size_foobar; i++) {
5 P | foo[i] += bar[i+c]/2;
|}
...
Parallel region 1 in main
Using max 50 streams per processor
...
Loop 2 in main in region 1
...
Loop 3 in main at line 4 in loop 2
...
Loop 4 in main in region 1
...
Loop 5 in main at line 9 in loop 4
Note that the compiler has placed both loops into the same region
and that the stream limit was applied to the entire region. If multiple
limits are specified for the same region the compiler uses the smallest
limit.
Two restrictions apply to the use of this pragma:
You cannot use this pragma with loop future loops.
If this pragma is used within the same region as a use n
streams pragma with a conflicting value (for example a use
value that is higher than the max value) the max n streams
per processor pragma will take precedence over the use n
streams pragma.
118 S247920
Vista de pagina 117
1 2 ... 113 114 115 116 117 118 119 120 121 122 123 ... 168 169

Comentarios a estos manuales

Sin comentarios