Quiz

1. How do you activate High Level Optimizations with the Intel® Compilers?

A) High Level Optimizations are enabled by default with the Fortran compiler.
B) -O3
C) High Level Optimizations are enabled by default with the Itanium® Compiler
D) -O2


2. Why can't the loop in the following function vectorize or Software PipeLine?

void afunc(int *A, int *B) {
int i,C=0;
   for (i=0;i<3;i++) {
      A[i] = 3 * A[i] + B[i] + C;
      C = 2 * B[i];
   }
}

1) Pointer A has a Read After Write dependency
2) Pointers A and B are ambiguous
3) Variable C has a loop carried dependency
4) Variable C and Pointer A are ambiguous

A) 1, 2, 3, 4
B) 1, 4
C) 3, 4
D) 2, 4