[Openmp-commits] [PATCH] D103059: [libomptarget] [amdgpu] Added LDS usage to the kernel trace
Dhruva Chakrabarti via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Mon May 24 19:34:28 PDT 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG96d70f4d289b: [libomptarget] [amdgpu] Added LDS usage to the kernel trace (authored by dhruvachak).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103059/new/
https://reviews.llvm.org/D103059
Files:
openmp/libomptarget/plugins/amdgpu/src/rtl.cpp
Index: openmp/libomptarget/plugins/amdgpu/src/rtl.cpp
===================================================================
--- openmp/libomptarget/plugins/amdgpu/src/rtl.cpp
+++ openmp/libomptarget/plugins/amdgpu/src/rtl.cpp
@@ -1788,10 +1788,12 @@
return OFFLOAD_FAIL;
}
+ uint32_t group_segment_size;
uint32_t sgpr_count, vgpr_count, sgpr_spill_count, vgpr_spill_count;
{
auto it = KernelInfoTable[device_id][kernel_name];
+ group_segment_size = it.group_segment_size;
sgpr_count = it.sgpr_count;
vgpr_count = it.vgpr_count;
sgpr_spill_count = it.sgpr_spill_count;
@@ -1819,12 +1821,12 @@
bool traceToStdout = print_kernel_trace & (RTL_TO_STDOUT | RTL_TIMING);
fprintf(traceToStdout ? stdout : stderr,
"DEVID:%2d SGN:%1d ConstWGSize:%-4d args:%2d teamsXthrds:(%4dX%4d) "
- "reqd:(%4dX%4d) sgpr_count:%u vgpr_count:%u sgpr_spill_count:%u "
- "vgpr_spill_count:%u tripcount:%lu n:%s\n",
+ "reqd:(%4dX%4d) lds_usage:%uB sgpr_count:%u vgpr_count:%u "
+ "sgpr_spill_count:%u vgpr_spill_count:%u tripcount:%lu n:%s\n",
device_id, KernelInfo->ExecutionMode, KernelInfo->ConstWGSize,
arg_num, num_groups, threadsPerGroup, num_teams, thread_limit,
- sgpr_count, vgpr_count, sgpr_spill_count, vgpr_spill_count,
- loop_tripcount, KernelInfo->Name);
+ group_segment_size, sgpr_count, vgpr_count, sgpr_spill_count,
+ vgpr_spill_count, loop_tripcount, KernelInfo->Name);
}
// Run on the device.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103059.347549.patch
Type: text/x-patch
Size: 1569 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210525/efd8d69d/attachment-0001.bin>
More information about the Openmp-commits
mailing list