[all-commits] [llvm/llvm-project] e95731: [OpenMP] Add thread ID function into new RTL

Joseph Huber via All-commits all-commits at lists.llvm.org
Tue Sep 21 14:44:14 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e95731cca7ecf5be22ea67a273cb19ba2c14d54c
      https://github.com/llvm/llvm-project/commit/e95731cca7ecf5be22ea67a273cb19ba2c14d54c
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2021-09-21 (Tue, 21 Sep 2021)

  Changed paths:
    M openmp/libomptarget/DeviceRTL/include/Interface.h
    M openmp/libomptarget/DeviceRTL/src/Mapping.cpp

  Log Message:
  -----------
  [OpenMP] Add thread ID function into new RTL

The new device runtime library currently lacks the
`kmpc_get_hardware_thread_id_in_block` function which is currently used
when doing the SPMDzation optimization. This call would be introduced
through the optimization and then cause a linking error because it was
not present. This patch adds support for this runtime call.

Reviewed By: tianshilei1992

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




More information about the All-commits mailing list