[cfe-dev] Clang/LLVM OpenMP program not spawning threads

David Chisnall David.Chisnall at cl.cam.ac.uk
Tue Jul 28 03:28:38 PDT 2015


On 28 Jul 2015, at 11:12, Andrey Bokhanko <andreybokhanko at gmail.com> wrote:
> 
> On Tue, Jul 28, 2015 at 12:37 PM, David Chisnall
> <David.Chisnall at cl.cam.ac.uk> wrote:
>> On 27 Jul 2015, at 23:19, Jaime Arteaga <jandres742 at gmail.com> wrote:
>>> 
>>> clang -lomp -I/.../openmp/runtime/exports/common/include -L/.../openmp/runtime/exports/lin_32e/lib ./test-openmp.c -o ./test-openmp
>> 
>> Doesn’t this need -fopenmp?
> 
> -fopenmp alone is not enough, since OpenMP support (that relies on
> Intel OMP API) is enabled *only* if compiler is specifically directed
> to target libomp. Thus, -fopenmp=libomp is required.

Ugh.  I thought we were going to fix that before the 3.7 release.  Having -fopenmp default to the null implementation is quite user hostile.

David





More information about the cfe-dev mailing list