From ba455e202537834dc25d3d8181268c8a443eb63f Mon Sep 17 00:00:00 2001 From: Matt Sinclair Date: Mon, 5 Aug 2024 14:43:41 -0500 Subject: [PATCH] gpu-compute: update GPUKernelInfo print to print WG number (#1413) Whenever a GPU kernel is launching a new WG, the GPUKernelInfo debug flag will print that the kernel is being launched, without the context of which WG from that kernel is being launched. This has caused some confusion to users, who think the entire kernel is being launched repeatedly. To resolve this confusion, update this print to make it clear which WG is being launched when this print is enabled. --- src/gpu-compute/dispatcher.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gpu-compute/dispatcher.cc b/src/gpu-compute/dispatcher.cc index e3cb53a342..9aa8dac979 100644 --- a/src/gpu-compute/dispatcher.cc +++ b/src/gpu-compute/dispatcher.cc @@ -206,7 +206,8 @@ GPUDispatcher::exec() } else if (!launched) { launched = true; disp_count++; - DPRINTF(GPUKernelInfo, "Launched kernel %d\n", exec_id); + DPRINTF(GPUKernelInfo, "Launched kernel %d for WG %d\n", + exec_id, disp_count); } }