开发者

Where can i get the .h file for OpenMP?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜