Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Use openmp with clang

I'm trying to compile code that uses openmp with clang. I found that the clang options are -fopenomp=libomp. But that doesn't work since clang can't find the openmp headers.

test-openmp.cpp:5:11: fatal error: 'omp.h' file not found
# include <omp.h>
1 error generated.

As a simple example I checked this program from the openmp website. It compiles fine using gcc.

Can I find out where the omp headers are installed on fedora?