Re: gomp-nvptx branch - libgomp changes

2016-11-11 Thread Jakub Jelinek
On Fri, Nov 11, 2016 at 11:43:06AM +0300, Alexander Monakov wrote: > > > +void > > > +gomp_barrier_wait_last (gomp_barrier_t *bar) > > > +{ > > > +#if 0 > > > + gomp_barrier_state_t state = gomp_barrier_wait_start (bar); > > > + if (state & BAR_WAS_LAST) > > > +gomp_barrier_wait_end (bar, sta

Re: gomp-nvptx branch - libgomp changes

2016-11-11 Thread Alexander Monakov
> > * affinity.c: ...here (new file). Guard use of PThreads-specific > > Never seen pthreads capitalized this way, use pthreads or Pthreads > or POSIX Threads. Right, sorry, not sure where I got that. Will use 'Pthreads'. > > +void > > +gomp_barrier_wait_last (gomp_barrier_t *bar) > > +{ >

Re: gomp-nvptx branch - libgomp changes

2016-11-11 Thread Jakub Jelinek
On Thu, Nov 10, 2016 at 08:11:45PM +0300, Alexander Monakov wrote: > libgomp/ > > * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c. > * Makefile.in. Regenerate. > * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it... > (LIBGOMP_USE_PTHRE

Re: gomp-nvptx branch - libgomp changes

2016-11-10 Thread Alexander Monakov
libgomp/ * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c. * Makefile.in. Regenerate. * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it... (LIBGOMP_USE_PTHREADS): ...here; new define. * configure: Regenerate. * c