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

Joseph Huber via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Oct 28 09:43:45 PDT 2022


jhuber6 added a comment.

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.


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