[PATCH] D98832: [libomptarget] Tune the number of teams and threads for kernel launch.

Dhruva Chakrabarti via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 16 10:05:38 PDT 2021


dhruvachak updated this revision to Diff 352470.
dhruvachak added a comment.

[libomptarget] [amdgpu] Set number of teams and threads based on GPU occupancy.

Determine total number of teams in a kernel and the number of threads in each 
team in order to maximize occupancy. This change considers register and LDS
usage of the kernel during occupancy computation.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D98832

Files:
  llvm/include/llvm/Frontend/OpenMP/OMPGridValues.h
  openmp/libomptarget/plugins/amdgpu/src/rtl.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98832.352470.patch
Type: text/x-patch
Size: 10268 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210616/49f237bd/attachment.bin>


More information about the llvm-commits mailing list