[oi-dev] Clang and GCC6 runtime
Alexander Pyhalov
alp at sfedu.ru
Wed Jul 31 19:28:28 UTC 2019
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.
С уважением,
Александр Пыхалов,
программист отдела телекоммуникационной инфраструктуры
управления информационно-коммуникационной инфраструктуры ЮФУ
________________________________________
От: Bob Friesenhahn <bfriesen at simple.dallas.tx.us>
Отправлено: 31 июля 2019 г. 21:48
Кому: Alexander Pyhalov via oi-dev
Тема: Re: [oi-dev] Clang and GCC6 runtime
On Wed, 31 Jul 2019, Alexander Pyhalov via oi-dev wrote:
> OK
> I have almost working Clang 8.0.1.
Do the normal -pthreads and -fopenmp (OpenMP) options work with this
build? I was excited when I found Clang 8 available from pkgsrc but
was disappointed when I found that GCC options normally available from
Solaris are not working. It may be that Clang is lacking
customizations necessary to emulate GCC under Solaris-derived systems.
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
_______________________________________________
oi-dev mailing list
oi-dev at openindiana.org
https://openindiana.org/mailman/listinfo/oi-dev
More information about the oi-dev
mailing list