On Thu, Sep 24, 2015 at 06:18:10PM +0300, Alexander Monakov wrote:
> > I'd prefer here the https://gcc.gnu.org/ml/gcc-patches/2015-04/msg01418.html
> > changes to libgomp.h and associated configury changes.
> 
> OK, like the following?
> 
> [gomp4] libgomp: guard pthreads usage by LIBGOMP_USE_PTHREADS
> 
> This allows to avoid referencing pthread types and functions on nvptx.
> 
>       * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
>         (LIBGOMP_USE_PTHREADS): ...here; new define.
>         * configure: Regenerate.
>         * config.h.in: Likewise.
>         * libgomp.h: Guard pthread.h inclusion.
>         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
>         (gomp_init_thread_affinity): Ditto.

Yeah, thanks.

        Jakub

Reply via email to