[Openmp-commits] [PATCH] D108562: [libomptarget][amdgpu] Refactor debug printing
Jon Chesterfield via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Mon Aug 23 10:06:10 PDT 2021
JonChesterfield added inline comments.
================
Comment at: openmp/libomptarget/plugins/amdgpu/src/rtl.cpp:1898
if (print_kernel_trace & STARTUP_DETAILS) {
- fprintf(stderr, "RTLDeviceInfoTy::Max_Teams: %d\n",
- RTLDeviceInfoTy::Max_Teams);
- fprintf(stderr, "Max_Teams: %d\n", Max_Teams);
- fprintf(stderr, "RTLDeviceInfoTy::Warp_Size: %d\n",
- RTLDeviceInfoTy::Warp_Size);
- fprintf(stderr, "RTLDeviceInfoTy::Max_WG_Size: %d\n",
- RTLDeviceInfoTy::Max_WG_Size);
- fprintf(stderr, "RTLDeviceInfoTy::Default_WG_Size: %d\n",
- RTLDeviceInfoTy::Default_WG_Size);
- fprintf(stderr, "thread_limit: %d\n", thread_limit);
- fprintf(stderr, "threadsPerGroup: %d\n", threadsPerGroup);
- fprintf(stderr, "ConstWGSize: %d\n", ConstWGSize);
+ DP("RTLDeviceInfoTy::Max_Teams: %d\n", RTLDeviceInfoTy::Max_Teams);
+ DP("Max_Teams: %d\n", Max_Teams);
----------------
ronlieb wrote:
> could we keep all the fprintf's under runtime control of STARTUP_DEBUG ,its helpful to turn this on separately then all the DP traces,
I can make my peace with that as it's still behind an environment variable. Will wait to see if anyone else comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108562/new/
https://reviews.llvm.org/D108562
More information about the Openmp-commits
mailing list