gcc/libgomp/config/nvptx
Andrew Stubbs 6f51395197 libgomp: disable barriers in nested teams
Both GCN and NVPTX allow nested parallel regions, but the barrier
implementation did not allow the nested teams to run independently of each
other (due to hardware limitations).  This patch fixes that, under the
assumption that each thread will create a new subteam of one thread, by
simply not using barriers when there's no other thread to synchronise.

libgomp/ChangeLog:

	* config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
	total number of threads is one.
	(gomp_team_barrier_wake): Likewise.
	(gomp_team_barrier_wait_end): Likewise.
	(gomp_team_barrier_wait_cancel_end): Likewise.
	* config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
	(gomp_team_barrier_wake): Likewise.
	(gomp_team_barrier_wait_end): Likewise.
	(gomp_team_barrier_wait_cancel_end): Likewise.
	* testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
2020-09-29 11:48:04 +01:00
..
affinity-fmt.c Update copyright years. 2020-01-01 12:51:42 +01:00
atomic.c [libgomp, nvptx] Add __sync_compare_and_swap_16 2020-09-14 08:28:56 +02:00
bar.c libgomp: disable barriers in nested teams 2020-09-29 11:48:04 +01:00
bar.h Update copyright years. 2020-01-01 12:51:42 +01:00
doacross.h Update copyright years. 2020-01-01 12:51:42 +01:00
error.c Update copyright years. 2020-01-01 12:51:42 +01:00
icv-device.c Update copyright years. 2020-01-01 12:51:42 +01:00
oacc-parallel.c
simple-bar.h Update copyright years. 2020-01-01 12:51:42 +01:00
target.c Update copyright years. 2020-01-01 12:51:42 +01:00
task.c Update copyright years. 2020-01-01 12:51:42 +01:00
team.c Update copyright years. 2020-01-01 12:51:42 +01:00
teams.c Update copyright years. 2020-01-01 12:51:42 +01:00
time.c Update copyright years. 2020-01-01 12:51:42 +01:00