- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are compiling to generate a XEON PHI native code. If you want to use the offload model in OpenMP remove the -mmic option
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page