[all-commits] [llvm/llvm-project] 4fde81: [OpenMP][libomptarget] Allow overriding function t...

Kevin Sala Penadés via All-commits all-commits at lists.llvm.org
Sat Dec 3 12:51:49 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4fde81679c78ef1956840e7689bc8415b72292f1
      https://github.com/llvm/llvm-project/commit/4fde81679c78ef1956840e7689bc8415b72292f1
  Author: Kevin Sala <kevin.sala at bsc.es>
  Date:   2022-12-03 (Sat, 03 Dec 2022)

  Changed paths:
    M openmp/libomptarget/plugins-nextgen/common/PluginInterface/GlobalHandler.cpp
    M openmp/libomptarget/plugins-nextgen/common/PluginInterface/GlobalHandler.h

  Log Message:
  -----------
  [OpenMP][libomptarget] Allow overriding function that gets ELF symbol info

The OpenMP target's NextGen plugins retrieve symbol information in the ELF image
(i.e., address and size) through the ELF section and ELF symbol objects. However,
the images of CUDA programs compute the address differently from the images of
AMDGPU programs:

  - Address for CUDA symbols: image begin + section's offset + symbol's st_value
  - Address for AMDGPU symbols: image + begin + symbol's st_value

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




More information about the All-commits mailing list