Technical data
Cray Standard C/C++ Reference Manual
3.7.3 novector Directive
Scope: Local
The novector directive directs the compiler to not vectorize the loop that
immediately follows the directive. It overrides any other vectorization-related
directives, as well as the -h vector and -h ivdep command line options. The
format of this directive is as follows:
#pragma _CRI novector
The following example illustrates the use of the novector compiler directive:
#pragma _CRI novector
for (i = 0; i < h; i++) { /* Loop not vectorized */
a[i] = b[i] + c[i];
}
3.7.4 novsearch Directive (UNICOS Systems)
Scope: Local
The novsearch directive directs the compiler to not vectorize the search loop
that immediately follows the directive. A search loop is a loop with one or more
early exit statements. It overrides any other vectorization-related directives as
well as the -h vector and -h ivdep command line options. The format of
this directive is as follows:
#pragma _CRI novsearch
The following example illustrates the use of the novsearch compiler directive:
#pragma _CRI novsearch
for (i = 0; i < h; i++) { /* Loop not vectorized */
if (a[i] < b[i]) break;
a[i] = b[i];
}
3.7.5 prefervector Directive (UNICOS Systems)
Scope: Local
60 S–2179–36










