libgomp: Enforce 1-thread limit in subteams
authorAndrew Stubbs <ams@codesourcery.com>
Tue, 29 Sep 2020 09:15:04 +0000 (10:15 +0100)
committerAndrew Stubbs <ams@codesourcery.com>
Wed, 30 Sep 2020 16:37:31 +0000 (17:37 +0100)
commit091ddcc1b2199cdf8146fb00cf55ef9162e237b9
tree0e0c136ad5e5e5c7bc8224bd0fd7e3a081e7c6f2
parentecd700c1bc6b4da70a439ac233f1515131c29f86
libgomp: Enforce 1-thread limit in subteams

Accelerators with fixed thread-counts will break if nested teams are expected
to have multiple threads each.

libgomp/ChangeLog:

2020-09-29  Andrew Stubbs  <ams@codesourcery.com>

* parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
and amdgcn targets.
libgomp/parallel.c