OpenMP Context Selectors (GNU libgomp)

### 11.2 OpenMP Context Selectors ¶

`vendor` is always `gnu`. References are to the GCC manual.

For the host compiler, `kind` always matches `host`, `cpu` and `any`; for the offloading architectures AMD GCN and Nvidia PTX, `kind` always matches `nohost`, `gpu` and `any`. For the x86 family of computers, AMD GCN and Nvidia PTX the following traits are supported in addition; while OpenMP is supported on more architectures, GCC currently does not match any `arch` or `isa` traits for those.

Note that for AMD GCN and Nvidia PTX, the `isa` is currently an exact match between the compiled-for ISA architecture and the matching `isa` trait value. For instance, when compiling for `gfx942`, the `isa` trait value `gfx9-4-generic` is not matched and, likewise, `gfx942` is not matched when compiling for its generic architecture.

`arch` | `isa`
--- | ---
`x86`, `x86_64`, `i386`, `i486`, `i586`, `i686`, `ia32` | See `-m...` flags in “x86 Options” (without `-m`)
`amdgcn`, `gcn` | See `-march=` in “AMD GCN Options”
`nvptx`, `nvptx64` | See `-march=` in “Nvidia PTX Options”