title: zero output when OpenACC is used
body: <p><strong>I use PGI community edition 17.10 to compile and run fallowing code. why the output is wrong when I add directives of OpenACC?
  may you if help me why it's happen?
  Thanks in advance,
  sajad</strong> </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;math.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;assert.h&gt;
  #include &lt;openacc.h&gt;
  #include&lt;time.h&gt;
  #include &lt;string.h&gt;
  #include &lt;malloc.h&gt;
  #include &lt;cuda_runtime_api.h&gt;
  
  #define NX 2
  #define NY 2
  #define NZ 2
  int main(void)
  {
  static int  i, j, k;
  static double A[NX][NY][NZ]=2 ,B[NX][NY][NZ]=10.,C[NX]=10.,D[NY]=10.,E[NZ]=10.;
  
  FILE *file;
  file = fopen("BB-and-A.csv", "w");
  #pragma acc  data copy( A ,B,C,D,E,i, j, k)
        {
  #pragma acc   kernels loop private(i, j, k)
  
              for (i = 0; i &lt;= NX; i++) {
                  for (j =0; j &lt;= NY ; j++) {
                      for (k =0; k &lt;= NZ ; k++) {
                              C[i]=i;
                              D[j]=j;
                              E[k]=k;
                      }
                  }
              }
  }
      for (i = 0; i &lt;= NX; i++) {
                  for (j =0; j &lt;= NY ; j++) {
                      for (k =0; k &lt;= NZ ; k++) {
                          fprintf(file, "%e, %e, %e \n", C[i], D[j],E[k] );
                      }
                  }
      }
  fclose(file);
  }
  </code></pre>