[all-commits] [llvm/llvm-project] 422ada: [OpenMP] Add thread limit environment variable sup...

Joseph Huber via All-commits all-commits at lists.llvm.org
Tue Jun 22 13:25:58 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 422adaa879b2de5a682eaed1a4f7cf86e9ea12b4
      https://github.com/llvm/llvm-project/commit/422adaa879b2de5a682eaed1a4f7cf86e9ea12b4
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2021-06-22 (Tue, 22 Jun 2021)

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

  Log Message:
  -----------
  [OpenMP] Add thread limit environment variable support to plugins

The OpenMP 5.1 standard defines the environment variable
`OMP_TEAMS_THREAD_LIMIT` to limit the number of threads that will be run in a
single block. This patch adds support for this into the AMDGPU and CUDA
plugins.

Reviewed By: jdoerfert

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




More information about the All-commits mailing list