[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
Mon Jun 28 11:57:25 PDT 2021


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

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

Perform teams/threads tuning in non-generic execution modes.
Do not tune if OMP_TEAMS_THREAD_LIMIT is set.

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.354975.patch
Type: text/x-patch
Size: 10362 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210628/f4efae4b/attachment.bin>


More information about the llvm-commits mailing list