Technical data
Cray Standard C/C++ Reference Manual
#pragma _CRI nostream
The following example illustrates the use of the nostream directive:
#pragma _CRI nostream
for ( i = 0; i < n1; i++ ) {
x[i] = y[i] + z[i]
}
3.9.2 #pragma preferstream Directive (Cray SV1 series Systems Only)
Scope: Local
The preferstream directive tells the compiler to multi-stream the following
loop. It can be used when one of these conditions apply:
• The compiler issues a message saying there are too few iterations in the loop
to make multi-streaming worthwhile.
• The compiler streams a loop in a loop nest, and you want it to stream a
different eligible loop in the same nest.
The format of this directive is as follows:
#pragma _CRI preferstream
The following example illustrates the use of the preferstream directive:
for ( j = 0; j< n2; j++ ) {
#pragma _CRI preferstream
for ( i = 0; i < n1; i++ ) {
a[j][i] = b[j][i] + c[j][i]
}
}
3.10 Scalar Directives
The following subsections describe the scalar optimization directives, which
control aspects of code generation, register storage, and so on.
86 S–2179–36










