[all-commits] [llvm/llvm-project] c63dce: [OpenMP][JIT] Introduce support for AMDGPU

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Wed Jan 4 10:15:08 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c63dced93b46ec3ab925d9049f2a8c8901f5d913
      https://github.com/llvm/llvm-project/commit/c63dced93b46ec3ab925d9049f2a8c8901f5d913
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2023-01-04 (Wed, 04 Jan 2023)

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

  Log Message:
  -----------
  [OpenMP][JIT] Introduce support for AMDGPU

To JIT kernels for AMDGPUs we need to provide the architecture, the
triple, and a post-link callback. The first two are simple, the last one
is a little more complicated since we need to invoke `lld`. There is
some library interface but for that we need the lld library, which is
not generally available, thus we go with the executable for now. In
either way we need to manifest the (amdgcn) object file and read the
output from another file. We should try to avoid that in the future.
The options for `lld` are copied from the way clang invokes it.

Reviewed By: tianshilei1992

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




More information about the All-commits mailing list