Reputation: 23380
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
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
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
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