[arnoldg@iforge grid]$ mpiicc -I../../include -c -opt-report HPL_sum.c
...
HPO Vectorizer Report (HPL_sum)

HPL_sum.c(107:7-107:7):VEC:HPL_sum:  LOOP WAS VECTORIZED
loop skipped: multiversioned
HPL_sum.c(113:7-113:7):VEC:HPL_sum:  LOOP WAS VECTORIZED
loop skipped: multiversioned
...
[arnoldg@iforge grid]$ cat -n HPL_sum.c
...
   103     if( DTYPE == HPL_INT )
   104     {
   105        const int       * a = (const int *)(IN);
   106        int             * b = (int *)(INOUT);
   107        for( i = 0; i < N; i++ ) b[i] += a[i];
   108     }
   109     else
   110     {
   111        const double    * a = (const double *)(IN);
   112        double          * b = (double *)(INOUT);
   113        for( i = 0; i < N; i++ ) b[i] += a[i];
   114     }
...
[arnoldg@iforge grid]$ mpiicc -I../../include -c -opt-report HPL_max.c
HPO VECTORIZER REPORT (HPL_max) LOG OPENED ON Wed May 30 14:35:33 2012


<HPL_max.c;-1:-1;hpo_vectorization;HPL_max;0>
HPO Vectorizer Report (HPL_max)

HPL_max.c(107:7-107:7):VEC:HPL_max:  loop was not vectorized: existence of vector dependence
HPL_max.c(113:7-113:7):VEC:HPL_max:  loop was not vectorized: existence of vector dependence
...
[arnoldg@iforge grid]$ cat -n HPL_max.c
...
   103     if( DTYPE == HPL_INT )
   104     {
   105        const int       * a = (const int *)(IN);
   106        int             * b = (int *)(INOUT);
   107        for( i = 0; i < N; i++ ) b[i] = Mmax( a[i], b[i] );
   108     }
   109     else
   110     {
   111        const double    * a = (const double *)(IN);
   112        double          * b = (double *)(INOUT);
   113        for( i = 0; i < N; i++ ) b[i] = Mmax( a[i], b[i] );
   114     }
...
  • No labels