tomermes
tomermes

Reputation: 23380

Where can i get the .h file for OpenMP?

I'm searching for the omp.h file for using it in eclipse. I failed to find it in openmp.org.

Where do I find omp.h?

thanks.

Upvotes: 4

Views: 23572

Answers (3)

jww
jww

Reputation: 102464

Where do I find omp.h?

On Ubuntu 14:

$ find /usr -name omp.h
/usr/lib/gcc/x86_64-linux-gnu/4.8/include/omp.h
/usr/lib/gcc-cross/arm-linux-gnueabi/4.7/include/omp.h

Upvotes: 2

arsenm
arsenm

Reputation: 2933

I think it's essentially a compiler builtin, so you won't find an actual header file for it. You do however need to use whatever flags the compiler uses for OpenMP.

Upvotes: 0

Dat Chu
Dat Chu

Reputation: 11140

Under Linux, you can find a file by

locate omp.h

Have you tried to simply use it with

#include <omp.h>

and add the openmp flag to your g++ compiler flag?

g++ -fopenmp sample.c

Upvotes: 8

Related Questions