Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 624
tomermes Avatar asked Jan 21 '23 23:01

tomermes


2 Answers

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
like image 51
Dat Chu Avatar answered Feb 05 '23 05:02

Dat Chu


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
like image 34
jww Avatar answered Feb 05 '23 05:02

jww