[all-commits] [llvm/llvm-project] 333324: [OpenMP][deviceRTLs] Remove omp_is_initial_device

Shilei Tian via All-commits all-commits at lists.llvm.org
Mon Jan 25 15:38:43 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3333244d77c44e8bb5af57027646596f7714ff62
      https://github.com/llvm/llvm-project/commit/3333244d77c44e8bb5af57027646596f7714ff62
  Author: Shilei Tian <tianshilei1992 at gmail.com>
  Date:   2021-01-25 (Mon, 25 Jan 2021)

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

  Log Message:
  -----------
  [OpenMP][deviceRTLs] Remove omp_is_initial_device

`omp_is_initial_device` in device code was implemented as a builtin
function in D38968 for a better performance. Therefore there is no chance that
this function will be called to `deviceRTLs`. As we're moving to build `deviceRTLs`
with OpenMP compiler, this function can lead to a compilation error. This patch
just simply removes it.

Reviewed By: JonChesterfield

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




More information about the All-commits mailing list