[all-commits] [llvm/llvm-project] 7a02ab: [clang-offload-bundler] HIP and OpenMP comaptibili...

Saiyedul Islam via All-commits all-commits at lists.llvm.org
Tue Mar 1 23:56:18 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7a02abf06ff94762d8cbce71d0249df25d64721b
      https://github.com/llvm/llvm-project/commit/7a02abf06ff94762d8cbce71d0249df25d64721b
  Author: Saiyedul Islam <Saiyedul.Islam at amd.com>
  Date:   2022-03-02 (Wed, 02 Mar 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/CommonArgs.cpp
    M clang/test/Driver/clang-offload-bundler-asserts-on.c
    M clang/test/Driver/clang-offload-bundler.c
    M clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp

  Log Message:
  -----------
  [clang-offload-bundler] HIP and OpenMP comaptibility for linking heterogeneous archive library

`hip-openmp-compatible` flag treats hip and hipv4 offload kinds
as compatible with openmp offload kind while extracting code objects
from a heterogenous archive library. Vice versa is also considered
compatible if hip code was compiled with -fgpu-rdc.

This flag only relaxes compatibility criteria on `OffloadKind`,
rest of the components like `Triple` and `GPUArhc` still needs to
be compatible.

Reviewed By: yaxunl

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




More information about the All-commits mailing list