[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
Tue Mar 21 02:18:42 PDT 2023


kevinsala added inline comments.


================
Comment at: openmp/libomptarget/src/interface.cpp:61
+  }
+}
+
----------------
jdoerfert wrote:
> Isn't this the same code as in __tgt_print_device_info? Why do we need this?
>From previous comments I understood it was better to explicitly initialize devices from the `llvm-omp-device-info`. Is it preferable this explicit initialization or a lazy initialization by `__tgt_print_device_info`?


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

https://reviews.llvm.org/D146081



More information about the Openmp-commits mailing list