Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

OpenMP 4.0 implementation in Intel Compiler

Rezaul_R_
Beginner
289 Views
Hi..
 
CAN YOU PLEASE TELL ME, WHICH INTEL COMPILER VERSION HAS IMPLEMENT OPENMP 4.0 DIRECTIVES ..? 
 
I am trying to execute openmp 4 (#pragma omp target data  map.. / #pragma omp target) ---> I am using icc (ICC) 15.0.2 20150121 on stampede, but not able to compile. [goal is to compare 1 & 2]
 
< login2.stampede(197)$ icc -openmp omp_target_cost_offload.c -mmic -o ompTarget_cost_offload
omp_target_cost_offload.c(44): warning #3180: unrecognized OpenMP #pragma
  #pragma omp target data  map(to: a[0:size], b[0:size])  map(from: c[0:size])
          ^
 
omp_target_cost_offload.c(46): warning #3180: unrecognized OpenMP #pragma
    #pragma omp target >
 
and the code is simple as: 
 
#pragma omp target data  map(to: a[0:size], b[0:size])  map(from: c[0:size])
{
        #pragma omp target 
        #pragma omp parallel for default(none) shared(a,b,c,size)
        for ( i = 0; i < size; ++i)
            c = a + b;
}
 
THANK YOU VERY MUCH IN ADVANCE.
- RAJU
0 Kudos
2 Replies
Ravi_N_Intel
Employee
289 Views

You are compiling to generate a XEON PHI native code.  If you want to use the offload model in OpenMP  remove the -mmic option

0 Kudos
KitturGanesh
Employee
289 Views

@Raju:   Refer to the link at: https://software.intel.com/en-us/articles/programming-and-compiling-for-intel-many-integrated-core-architecture for more detailed info on programming for MIC with offload and native models.

_Kittur 

0 Kudos
Reply