[Openmp-commits] [PATCH] D136952: [libomptarget] Fix a race condition in checkDeviceAndCtors

Shilei Tian via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Oct 28 14:17:36 PDT 2022


tianshilei1992 added a comment.

In D136952#3892309 <https://reviews.llvm.org/D136952#3892309>, @jhuber6 wrote:

> In D136952#3892132 <https://reviews.llvm.org/D136952#3892132>, @tianshilei1992 wrote:
>
>> This should work. On the other hand, is it possible to use `init_once` somehow? I think that'd be a better way.
>
> Could we use `init_once`? We need to do this once per device right after the images have been loaded.

Once per device?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D136952



More information about the Openmp-commits mailing list