I have problems compiling OpenMP code using clang (both 3.6 and 3.8 ToT).
I followed this blog post http://blog.llvm.org/2015/05/openmp-support_22.html , but the problem is that the compiled program is executed on a one thread only.
I'm using ubuntu 15.04 x64, I have both libgomp and libiopmp installed and I compile my code with the following command:
clang test.c -o test -fopenmp -L/usr/lib/gcc/x86_64-linux-gnu/5.1.1
When I use gcc instead, everything works fine: gcc test.c -o test -fopenmp
I also tried running export LD_LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/5.1.1:$LD_LIBRARY_PATH
but it didn't help.
`
Any suggestions?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…