[Openmp-commits] [PATCH] D134845: [OpenMP][libomptarget] Emit runtime message when variable is incorrectly mapped to device

Tom Scogland via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Sep 30 06:43:51 PDT 2022


trws added a comment.

The message seems useful, accidentally putting x there rather than x[:0] like the user probably intended is likely to be a relatively common mistake unfortunately.  Would it be feasible to, when the message would be printed for a pointer-type variable, check if it's target is accessible and suggest the appropriate fix, or at least say "maybe you meant to use an array section, the array section target is valid"?  That would make it immensely easier for an lower experience user to take action on.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D134845/new/

https://reviews.llvm.org/D134845



More information about the Openmp-commits mailing list