[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 05:48:00 PDT 2023
kevinsala added a comment.
There is also the option to auto initialize the devices at the plugin level when `GenericPluginTy::getDevice(N)` is called and device `N` is in a uninitialized state. In my opinion, that would be the safest option and would cover all cases. But it will require implementing a similar mechanism from libomptarget level to guarantee the device creation and initialization is tread-safe and serialized (i.e., `std::call_once` in libomptarget).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146081/new/
https://reviews.llvm.org/D146081
More information about the Openmp-commits
mailing list