[Openmp-commits] [PATCH] D146081: [OpenMP][libomptarget] Init device when printing device info

Kevin Sala via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Mar 15 03:07:17 PDT 2023


kevinsala added a comment.

The initial patch should fix the crash for the `llvm-omp-device-info` case, or any other case calling `__tgt_print_device_info`. I saw lazy initialization of devices in other API calls and tried to reproduced the same behavior. Anyway, initializing them explicitly from the tool seems more clean, so I just updated the patch with it.

Regarding the usefulness of this tool, it's true that it does not print anything relevant since nextgen plugins are not printing any information for the moment. I'm going to open a new patch to print at least the information reported by old plugins.


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

https://reviews.llvm.org/D146081



More information about the Openmp-commits mailing list