[all-commits] [llvm/llvm-project] ffd159: [OpenMP] cmake option LIBOMPTARGET_NVPTX_MAX_SM fo...

Ye Luo via All-commits all-commits at lists.llvm.org
Thu Sep 24 09:40:18 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ffd159d8e919435561a8c9eac0dcdd83aacdcf6a
      https://github.com/llvm/llvm-project/commit/ffd159d8e919435561a8c9eac0dcdd83aacdcf6a
  Author: Ye Luo <yeluo at anl.gov>
  Date:   2020-09-24 (Thu, 24 Sep 2020)

  Changed paths:
    M openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
    M openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h

  Log Message:
  -----------
  [OpenMP] cmake option LIBOMPTARGET_NVPTX_MAX_SM for nvptx device RTL

It allows customizing MAX_SM for non-flagship GPU and reduces graphic memory usage.

In addition, so far the size is hard-coded up to __CUDA_ARCH__ 700 and is already a hassle for 800.
Introduce MAX_SM for 800 and protect future arch

Reviewed By: JonChesterfield

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




More information about the All-commits mailing list