Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1175

icpc: -openmp not supported

$
0
0

Hi.

I am trying to compile simple code using openmp.

Here is the code (file test.cpp):
 

int main()
{
    double a[100];
    #pragma omp parallel for
    for (int i = 0; i < 100; ++i) {
        a[i] = i;
    }
    return 0;
}

I compile using the following command:
 

icpc -openmp test.cpp

the result is:

icpc: command line error: option '-openmp' not supported

Can you help me please?

Thread Topic: 

Help Me

Viewing all articles
Browse latest Browse all 1175

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>