[all-commits] [llvm/llvm-project] aca33b: [OpenMP][CUDA] Remove the hard team limit

Shilei Tian via All-commits all-commits at lists.llvm.org
Thu Feb 10 15:07:59 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aca33b0b37b706a013625c92c4713b3a329d90d0
      https://github.com/llvm/llvm-project/commit/aca33b0b37b706a013625c92c4713b3a329d90d0
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2022-02-10 (Thu, 10 Feb 2022)

  Changed paths:
    M openmp/libomptarget/plugins/cuda/src/rtl.cpp

  Log Message:
  -----------
  [OpenMP][CUDA] Remove the hard team limit

Currently we have a hard team limit, which is set to 65536. It says no matter whether the device can support more teams, or users set more teams, as long as it is larger than that hard limit, the final number to launch the kernel will always be that hard limit. It is way less than the actual hardware limit. For example, my workstation has GTX2080, and the hardware limit of grid size is 2147483647, which is exactly the largest number a `int32_t` can represent. There is no limitation mentioned in the spec. This patch simply removes it.

Reviewed By: jdoerfert

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




More information about the All-commits mailing list