Re: [oi-dev] Clang and GCC6 runtime

2019-07-31 Thread Bob Friesenhahn
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 use

Re: [oi-dev] Clang and GCC6 runtime

2019-07-31 Thread Alexander Pyhalov via oi-dev
It seems LLVM OpenMP library has not a single Solaris-specific line... С уважением, Александр Пыхалов, программист отдела телекоммуникационной инфраструктуры управления информационно-коммуникационной инфраструктуры ЮФУ От: Alexander Pyhalov via oi-dev От

Re: [oi-dev] Clang and GCC6 runtime

2019-07-31 Thread Alexander Pyhalov via oi-dev
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 expec

Re: [oi-dev] Clang and GCC6 runtime

2019-07-31 Thread Bob Friesenhahn
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 ava

Re: [oi-dev] Clang and GCC6 runtime

2019-07-31 Thread Alexander Pyhalov via oi-dev
OK I have almost working Clang 8.0.1. The only issue, it doesn't include G++ runpaths in resulting binary. But (suddenly), resulting binaries seem to work with either runtime (GCC4 or 6)... С уважением, Александр Пыхалов, программист отдела телекоммуникационной инфраструктуры управления информац