[llvm] [Offload][OpenMP] Report source location of data transfers and synchr… (PR #223730)
Jason Van Beusekom via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 16 14:48:14 PDT 2026
================
@@ -86,6 +86,17 @@ printKernelArguments(const ident_t *Loc, const int64_t DeviceId,
}
}
+////////////////////////////////////////////////////////////////////////////////
+/// Report that the runtime is about to wait for the region's outstanding
+/// asynchronous operations (data transfers and kernels) to complete.
+static inline void printSyncInfo(const ident_t *Loc, const int64_t DeviceId) {
+ if (!(getInfoLevel() & OMP_INFOTYPE_DATA_TRANSFER))
+ return;
+ std::string LocStr = getSourceLocationSuffix(Loc, " at ");
+ INFO(OMP_INFOTYPE_DATA_TRANSFER, DeviceId,
+ "Waiting for asynchronous operations to complete%s\n", LocStr.c_str());
----------------
Jason-Van-Beusekom wrote:
Ah whoops good catch, fixed in https://github.com/llvm/llvm-project/pull/223730/commits/cb10b6c440f6b9df63a6a34ebc0b8123541421f3
https://github.com/llvm/llvm-project/pull/223730
More information about the llvm-commits
mailing list