开发者

Where can i get the .h file for OpenMP?

开发者 https://www.devze.com 2023-01-28 11:57 出处:网络
I\'m searchin开发者_JAVA百科g for the omp.h file for using it in eclipse. I failed to find it in openmp.org.

I'm searchin开发者_JAVA百科g 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.


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


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消