[all-commits] [llvm/llvm-project] 97c8f6: [NFC][OpenMP][Offloading] Replaced explicit parall...

Shilei Tian via All-commits all-commits at lists.llvm.org
Thu Jul 15 19:21:19 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 97c8f60bbaf0986320fdfd03b11328b91c730a96
      https://github.com/llvm/llvm-project/commit/97c8f60bbaf0986320fdfd03b11328b91c730a96
  Author: Shilei Tian <tianshilei1992 at gmail.com>
  Date:   2021-07-15 (Thu, 15 Jul 2021)

  Changed paths:
    M openmp/libomptarget/deviceRTLs/common/src/libcall.cu
    M openmp/libomptarget/deviceRTLs/common/src/parallel.cu
    M openmp/libomptarget/deviceRTLs/common/src/support.cu
    M openmp/libomptarget/deviceRTLs/interface.h

  Log Message:
  -----------
  [NFC][OpenMP][Offloading] Replaced explicit parallel level computation with function `__kmpc_parallel_level`

There are two places in current deviceRTLs where it computes parallel level explicitly,
which is basically the functionality of `__kmpc_parallel_level`. Starting from
D105787, we plan to introduce a series of function call folding based on information
that can be deducted during compilation time. Computation of parallel level is
the next target. This patch makes steps for the optimization.

Reviewed By: jdoerfert

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




More information about the All-commits mailing list