[libomptarget][amdgpu] Fix kernel launch tracing to match previous behavior
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Thu, 14 Jan 2021 18:13:22 +0000 (18:13 +0000)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Thu, 14 Jan 2021 18:13:22 +0000 (18:13 +0000)
Restore control of kernel launch tracing to be >= 1 as it was before

export LIBOMPTARGET_KERNEL_TRACE=1

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D94695

openmp/libomptarget/plugins/amdgpu/src/rtl.cpp

index bd450f9..9453171 100644 (file)
@@ -1762,7 +1762,7 @@ int32_t __tgt_rtl_run_target_team_region_locked(
                 loop_tripcount, // From run_region arg
                 KernelInfo->device_id);
 
-  if (print_kernel_trace == 4)
+  if (print_kernel_trace >= 1)
     // enum modes are SPMD, GENERIC, NONE 0,1,2
     fprintf(stderr,
             "DEVID:%2d SGN:%1d ConstWGSize:%-4d args:%2d teamsXthrds:(%4dX%4d) "