[Openmp-commits] [PATCH] D120089: [OpenMP] Explicitly deinitialize device resources
Johannes Doerfert via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Sun Mar 6 14:54:12 PST 2022
jdoerfert added inline comments.
================
Comment at: openmp/libomptarget/plugins/cuda/src/rtl.cpp:566
+ // TODO: Provide an option to do it lazily once we allow pause/restart.
+ InitializedFlags.assign(NumberOfDevices, true);
}
----------------
tianshilei1992 wrote:
> Why do we need it?
Because we need to know the state of a device. Is it initialized or not. This flag tells us.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120089/new/
https://reviews.llvm.org/D120089
More information about the Openmp-commits
mailing list