[Openmp-commits] [PATCH] D112002: [OpenMP] Use function tracing RAII for runtime functions.

Johannes Doerfert via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Oct 18 09:28:25 PDT 2021


jdoerfert added a comment.

> The output only tracks team 0 and thread 0 so there isn't much output when using a generic region.

We could even expose this via the device_environment to the user as a runtime choice (env vars).
In case this is not eliminated at compile time it's costly either way.



================
Comment at: openmp/libomptarget/DeviceRTL/src/Debug.cpp:47
   if (config::isDebugMode(config::DebugKind::FunctionTracing) &&
-      mapping::getThreadIdInBlock() == 0) {
+      mapping::getThreadIdInBlock() == 0 && mapping::getBlockId() == 0) {
 
----------------
make it omp_get_thread_num though, and omp_get_team_num


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D112002



More information about the Openmp-commits mailing list