Compile with the %s option to vectorize and/or parallelize the loop at line %d.
Use option -opt-subscript-in-range (Linux* OS and Mac OS* X) or /Qopt-subscript-in-range (Windows* OS) for the specified file during compilation.
This option helps the compiler vectorize and parallelize the loop at the specified line. You must verify that the loops in the file do not contain very large integers and are not likely to generate very large integers in intermediate computations. A very large integer is loosely defined as follows: On an n-bit machine, a very large integer is typically >= 2n-2. For example, on a 32-bit machine, a very large integer would be >= 230.
Consider the following:
int f(int* A, int upper1, int upper2){
long extra = 100.0;
int return_val = 0;
int val;
for(int j=0; j < upper1; j++){
for(int i = 0; i < upper2; i++){
val = A[i*extra];
return_val += val;
}
}
return return_val;
}
If you determine it is safe to do so, compiling this example with option -opt-subscript-in-range (Linux* OS and Mac OS* X) or /Qopt-subscript-in-range (Windows* OS) results in vectorization of the innermost loop.
Make sure that no loop in the program contains or generates very large integers (typically very large integers are >= 230).
Copyright © 1996-2011, Intel Corporation. All rights reserved.