On Wed, Oct 04, 2023 at 01:08:15PM +0200, Tobias Burnus wrote: > I got confused myself when reading > > https://gcc.gnu.org/onlinedocs/libgomp/OpenMP-Context-Selectors.html > > Especially with regards to other platforms like PowerPC. > > It turned out that the list is complete, kind of. For 'arch' and 'isa' > those are the only ones - if we want to have more, it has to be > implemented (→ cf. PR105640). > > For 'kind': The host compiler always matches 'kind=host'; this also > applies to AMD GCN and Nvidia PTX - when compiled as stand-alone > compiler. Those two also match 'kind=gpu' (both as stand-alone > compiler(*) and for offloading). > > The attached documentation patch attempts to clarify this for both users > – and for implementers, for the latter, there is also a comment in the > .texi with more details. > > Comments, suggestions, remarks? > > Tobias > > (*) This could be changed by checking for "#ifndef ACCEL_COMPILER" in > gcc/config/{gcn/nvptx}/ but that does not seem to be worthwhile. > ----------------- > Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 > München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas > Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht > München, HRB 106955
> libgomp.texi: Clarify that no other OpenMP context selectors are implemented > > libgomp/ChangeLog: > > * libgomp.texi (OpenMP Context Selectors): Clarify 'kind' trait > and that other target archs have no 'arch'/'isa' traits implemented. LGTM. Jakub