[Openmp-commits] [PATCH] D132885: [libomptarget] Deprecate old method for setting the tripcount
Johannes Doerfert via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Mon Aug 29 15:53:44 PDT 2022
jdoerfert accepted this revision.
jdoerfert added a comment.
This revision is now accepted and ready to land.
LG, one nit.
================
Comment at: openmp/libomptarget/src/LegacyAPI.cpp:168
TIMESCOPE_WITH_IDENT(Loc);
- if (checkDeviceAndCtors(DeviceId, Loc)) {
- DP("Not offloading to device %" PRId64 "\n", DeviceId);
- return;
- }
-
- DP("__kmpc_push_target_tripcount(%" PRId64 ", %" PRIu64 ")\n", DeviceId,
- LoopTripcount);
- PM->TblMapMtx.lock();
- PM->Devices[DeviceId]->LoopTripCnt[__kmpc_global_thread_num(NULL)] =
- LoopTripcount;
- PM->TblMapMtx.unlock();
}
----------------
Add a DP note saying this is deprecated and a no-op now. Like WARNING: ...
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132885/new/
https://reviews.llvm.org/D132885
More information about the Openmp-commits
mailing list