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
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt
_______________________________________________
oi-dev mailing list
[email protected]
https://openindiana.org/mailman/listinfo/oi-dev