[oi-dev] Clang and GCC6 runtime

Bob Friesenhahn bfriesen at simple.dallas.tx.us
Wed Jul 31 21:09:26 UTC 2019


On Wed, 31 Jul 2019, Alexander Pyhalov via oi-dev wrote:

> No, -fopenmp seems to be implemented wrong.
> _REENTRANT is not defined, libgomp is not linked.
> If we specify "clang++ omp.cc -fopenmp=libgomp -o omp", application 
> is linked, but pragma parallel uses just one thread.
>
> When -pthreads is used, _REENTRANT is undefined.
>
> -pthread seems to work as expected.

There is an implementation of OpenMP for Clang which is independent of 
GOMP.

Regardless of current shortcomings, it is exciting that Clang is 
coming as an alternative to GCC.

Bob
-- 
Bob Friesenhahn
bfriesen at simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt




More information about the oi-dev mailing list