Hi Jakub,

Jakub Jelinek wrote:
Of course it makes me wonder to what extent we actually do support the
OpenMP 5.1 target_device device_num trait with constant or non-constant
device num:

Answer: If one removes some early errors such that the compiler
continues a bit further, one gets:

   36 |     !$omp  declare variant(variant4) 
match(target_device={device_num(0)})   ! OK
      |                                   1
sorry, unimplemented: 'target_device' selector set is not supported yet


Hence: Not yet supported, but the Sandra added the basic parsing
support for it to GCC 14 when she improved the handling.

However, the review-pending metadirective patch set
  https://gcc.gnu.org/pipermail/gcc-patches/2024-January/642005.html
has
  [PATCH 3/8] libgomp: runtime support for target_device selector

Thus, once we GCC 15 development work has started, we can look into
this feature and some other patches ...


Other pending patches:https://gcc.gnu.org/wiki/openmpPendingPatches

Tobias

Reply via email to