Hi ..
I am trying to make a comparison statistics of offload using,
1). Intel compiler assisted offload VS. 2). OPENMP 4.0 target construct
My QUESTION: HOW I CAN GET OPENMP 4.0 OFFLOAD REPORT(which environment variable I need to set..?), I used OFFLOAD Report=2; intel compiler directive offload it worked fine, BUT I AM GETTING VERY STRANGE STATISTICS WITH OPENMP 4.0 OFFLOAD (I am using Intel Xeon Phi as execution platform)
Here is the code
COMPILER DIRECTIVE OFFLOAD:
// Start time
gettimeofday(&start, NULL);
// Run SAXPY
#pragma offload target(mic:0) inout(x) out(y)
{
#pragma omp parallel for default (none) shared(a,x,y)
for (i = 0; i < n; ++i){
y[i] = a*x[i] + y[i];
}
} // end of target data
// end time
gettimeofday(&end, NULL);
OPENMP 4.0 TARGET OFFLOAD:
// Start time
gettimeofday(&start, NULL);
// Run SAXPY
#pragma omp target data map(to:x)
{
#pragma omp target map(tofrom:y)
{
#pragma omp parallel for
for (i = 0; i < n; ++i){
y[i] = a*x[i] + y[i];
}
}
} // end of target data
------
Thanks in advace. (Raju)